上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 43 下一页
摘要: /// /// 将DateTime时间格式转换为Unix时间戳格式 /// /// DateTime时间 /// 精度:Seconds-秒,Milliseconds-毫秒 /// public static long ToUnixTimeStamp(this DateTime dateTim... 阅读全文
posted @ 2016-08-09 09:55 小白ACE 阅读(1866) 评论(0) 推荐(0)
摘要: 1.nuget下载PagedList包 2.PageListHelper类: 3.创建一个部分页_PagedListPartial.cshtml 4.Index页面调用: 阅读全文
posted @ 2016-07-18 13:59 小白ACE 阅读(2458) 评论(0) 推荐(0)
摘要: 1、引用EF对应的程序集 使用命令安装EntityFramework包Install-Package EntityFramework Entity Framework简单目录: 1.context数据库上下文class: 2.Model实体类: 添加所需程序集: Install-Package Sy 阅读全文
posted @ 2016-07-18 11:52 小白ACE 阅读(907) 评论(0) 推荐(0)
摘要: 页面出现如下图: 第一种解决方案: 刚安装好IIS,这时需要注册IIS. 在Dos中进入Framework的安装文件夹 你将要发布的系统是什么.Net Framework版本,就注册什么版本 4.0版本进入 C:\Windows\Microsoft.NET\Framework\v4.0.30319 阅读全文
posted @ 2016-07-18 11:45 小白ACE 阅读(6730) 评论(1) 推荐(1)
摘要: using Newtonsoft.Json; using StackExchange.Redis; using System; using System.Configuration; using System.Reflection; using System.Threading.Tasks; using System.Text; namespace Lemon.Common { pub... 阅读全文
posted @ 2016-06-21 15:11 小白ACE 阅读(738) 评论(0) 推荐(0)
摘要: CREATE procedure [dbo].[cp_User_Increment] @channelId int, @currentPage int, @pageSize int, @userId int as if @channelId<=0 begin select CurrentTime, Cou... 阅读全文
posted @ 2016-06-01 09:36 小白ACE 阅读(995) 评论(1) 推荐(0)
摘要: CREATE FUNCTION [dbo].[f_DailyIncome] ( @userId int, @date date ) RETURNS decimal(18,2) AS BEGIN declare @income decimal(18,2); select @income = ISNULL(sum(uc.[TotalFee]*bcl.[Percent]),0)... 阅读全文
posted @ 2016-06-01 09:34 小白ACE 阅读(745) 评论(0) 推荐(0)
摘要: 1.DateTime 转为Unix的long的时间戳 long orderTime = order.AddTime.ToUnixTimeStamp("Milliseconds"); long payTime = order.StartTime.Value.ToUnixTimeStamp("Milli 阅读全文
posted @ 2016-05-26 16:49 小白ACE 阅读(726) 评论(0) 推荐(0)
摘要: 一、sql server日期时间函数 Sql Server中的日期与时间函数 1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004 阅读全文
posted @ 2016-05-26 16:38 小白ACE 阅读(780) 评论(0) 推荐(0)
摘要: /// /// 申请提现 /// /// 用户id /// 提现金额 /// public int ApplyTakeCash(int userId, decimal amount) { if(IsExistUser(userId)) r... 阅读全文
posted @ 2016-05-26 14:53 小白ACE 阅读(401) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 43 下一页