摘要: Inline Tabs New Tasks {{item.ti... 阅读全文
posted @ 2017-10-17 18:52 finly 阅读(354) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8" ?><nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2016-11-06 14:24 finly 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 最近有个需求涉及根据表名或者索引名字拿到文件分组名字SELECT'table_name'=OBJECT_NAME(i.id), i.indid,'index_name'=i.name, i.groupid,'filegroup'=f.name,'file_name'=d.physical_name,... 阅读全文
posted @ 2016-01-20 15:46 finly 阅读(264) 评论(0) 推荐(0) 编辑
摘要: public interface IRepository where TEntity : class { IQueryable Get( Expression> filter = null, Func, IOrderedQueryabl... 阅读全文
posted @ 2015-12-26 16:15 finly 阅读(176) 评论(0) 推荐(0) 编辑
摘要: To get thefirst day of the previous monthin SQL Server, use the following code:SELECT DATEADD(mm, DATEDIFF(mm, 0, GETDATE()) - 1, 0)To get thelast day... 阅读全文
posted @ 2015-12-18 10:54 finly 阅读(211) 评论(0) 推荐(0) 编辑
摘要: To get thefirst day of the previous weekin SQL Server, use the following code:SELECT DATEADD(wk,DATEDIFF(wk,7,GETDATE()),0)To get thelast day of the p... 阅读全文
posted @ 2015-12-18 09:08 finly 阅读(185) 评论(0) 推荐(0) 编辑
摘要: BEGIN tranCOMMIT tran ROLLBACK 阅读全文
posted @ 2015-08-13 14:37 finly 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Home Page 阅读全文
posted @ 2015-04-29 23:41 finly 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 这里以Mvc3模版项目的登录页为例,简单说一下过程:首先准备资源文件,即语言包。为web site项目添加Resource文件夹,然后在Resource文件夹下添加两个resx文件命令行工具ResGen.exe将这两个resx文件生成同名的resources文件,如zh-CN.resources、e... 阅读全文
posted @ 2015-04-29 23:36 finly 阅读(1716) 评论(0) 推荐(0) 编辑
摘要: returnRedirectToAction("MemberManager","Shop",new{id=Session["shopid"]});MemberManager:页面的Action;Shop:Controller名称;id:要传的参数名;Session["shopid"]:要传的参数! 阅读全文
posted @ 2014-03-11 11:41 finly 阅读(1632) 评论(0) 推荐(0) 编辑