12 2016 档案
摘要:HttpRuntime.Cache是应用程序级别的 HttpContext.Current.Cache是针对当前WEB上下文定义的 不同的是:HttpRuntime下的除了WEB中可以使用外,非WEB程序也可以使用。 HttpRuntime.Cache 和 HttpContext.Current.C
阅读全文
摘要:sqlserver上创建存储过程案例: CREATE proc [dbo].[proc_GetAllStructureIdByStructureId] @Com_StructureId uniqueidentifier @Com_StructureId传入参数ASBEGIN select a.*,c
阅读全文
摘要:Asp.net Cache所在命名空间是System.Web.HttpContext.Current.Cache; 例子: var cache = System.Web.HttpContext.Current.Cache; cache["ActiveYear"] = DateTime.Now.Yea
阅读全文
摘要:int[] statusArray=new int[]{(int)MEStatus.作业前一个月,(int)MEStatus.作业前三个月,(int)MEStatus.未施工}; return LepulsDB.DBContext.Dan_MonitorEvaluate.Count(t => t.P
阅读全文
摘要:sql 递归函数使用 SQL with as 示例: select * into #temp from Com_Structure a inner join Com_StructureType c on a.Com_SructureTypeID=c.Com_StructureTypeID where
阅读全文
摘要:ef动态拼接查询字段可以使用委托的方式Func Func<Sc_V_PersonalInspectionTableSchema, WhereClip> whereExp = p => { var whereClip = WhereClip.All; if (PlanBeginTime!=null)
阅读全文
摘要:ef4.0以上可以使用tostring(); var sql = DataAccess.LepulsDB.DBContext.Sc_V_PersonalInspection.Select().Where(whereExp).ToString(); 生成的结果: SELECT [Sc_V_Person
阅读全文
摘要:declare c_checkReview cursor FAST_FORWARD for --定义游标 select OperationCheckId,UpperTime,c.MonitorLevelId from Dan_OperationConditionCheck a inner join
阅读全文
摘要:在调试存储过程过程中,发现改了变量值之后不起作用问题。后来才明白,在调试存储过程时,如果修改了脚本,需要执行成功方可调试才能起作用。
阅读全文
摘要:var monitorLeveId = ""; $(".monitorLeve:checked").each(function (e) { if (monitorLeveId == "") { monitorLeveId = this.id; } else { monitorLeveId += ",
阅读全文
摘要:string monitorLeveIds=""; List<Guid> monitorLevelIdList=monitorLeveIds.Split(",").Select(item => Guid.Parse(item)).ToList();
阅读全文
摘要:在mvc中如何使用复杂的模型表单,如list<model>,或者model中包含list<model>字段。 list<model>案例: @model List<RTSafe.ZTSD.BusinessModules.DanModules.Models.OpConditionCheckModel>
阅读全文

浙公网安备 33010602011771号