2018年9月7日

摘要: 1. nuget: install log4net. 2.create log4net.config 3.in AssemblyInfo.cs Add line [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.confi 阅读全文
posted @ 2018-09-07 16:27 西凉风暴 阅读(206) 评论(0) 推荐(0)

2017年8月21日

摘要: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-statement File and Font are examples of managed types that access unm 阅读全文
posted @ 2017-08-21 15:41 西凉风暴 阅读(115) 评论(0) 推荐(0)

2017年3月7日

摘要: 不知道为什么asnotracking 不好用。 只能用这个办法了。 var newEntity = context.Entry(oldEntity).CurrentValues.ToObject(); 阅读全文
posted @ 2017-03-07 10:57 西凉风暴 阅读(121) 评论(0) 推荐(0)

2016年8月19日

摘要: Will execute after the page along with all its contents are done loading. This means that all images, CSS (and content defined by CSS like custom font 阅读全文
posted @ 2016-08-19 15:25 西凉风暴 阅读(236) 评论(0) 推荐(0)

2016年8月8日

摘要: 1。visual studio Project -> properties -> settings -> add a new variable,如Runtime(此时 visual studio 会自动添加一些代码到 config文件里) 2。在程序的某一个位置添加两行代码。 3。第一次运行时 Ru 阅读全文
posted @ 2016-08-08 11:35 西凉风暴 阅读(268) 评论(0) 推荐(0)

导航