上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 39 下一页
摘要: 1.nuget下载PagedList包 2.PageListHelper类: 3.创建一个部分页_PagedListPartial.cshtml 4.Index页面调用: 阅读全文
posted @ 2016-07-18 13:59 好学Ace 阅读(2440) 评论(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 阅读(887) 评论(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 阅读(6622) 评论(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 阅读(717) 评论(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 阅读(981) 评论(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 阅读(729) 评论(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 阅读(685) 评论(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 阅读(722) 评论(0) 推荐(0) 编辑
摘要: /// /// 申请提现 /// /// 用户id /// 提现金额 /// public int ApplyTakeCash(int userId, decimal amount) { if(IsExistUser(userId)) r... 阅读全文
posted @ 2016-05-26 14:53 好学Ace 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 控制器controller中使用过滤器: 阅读全文
posted @ 2016-05-10 17:35 好学Ace 阅读(347) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 39 下一页