随笔分类 - Mvc
摘要:思路给类的属性加特性标签,重写savechanges方法,获取当前entry反射查看是否存在标记为通知修改做日志的属性。
阅读全文
摘要:log4net.Config.XmlConfigurator.Configure();//获取Log4Net配置信息(配置信息定义在Web.config文件中) ThreadPool.QueueUserWorkItem(o => { while (true) { try { if (ErrorHan
阅读全文
摘要:导入命名空间@using System.Web.Script.Serialization;声明序列号器 @{ var serializer = new JavaScriptSerializer(); serializer.RegisterC...
阅读全文
摘要:http://www.cnblogs.com/stevenhqq/archive/2013/04/18/3028350.html解决方案多项目情况下的数据迁移,需要写完整路径名。PM> Enable-Migrations -ContextTypeName "解决方案.项目.Model.EntityC...
阅读全文
摘要:http://stackoverflow.com/questions/23347093/dbcontext-generator-t4-templates-with-code-firstdbfist使用t4模板edmx文件codefirst没有edmx文件,只有dbcontext类文件,稍微有点不一样...
阅读全文
摘要:下载http://t4-editor.tangible-engineering.com/Download_T4Editor_Plus_ModelingTools.html添加新建项Simple T4 Template,生成IBLL,注意不是添加运行时文本模板 using System;using ...
阅读全文
摘要:routes.MapRoute( name: "blog", //包含参数的url url: "{year}-{month}-{day}", defaults: new...
阅读全文
浙公网安备 33010602011771号