11 2015 档案
摘要:一个大项目里可能会有非常多个配置参数,有.Net自己支持的配置(比如WCF,AppSettings),还有一部分是自定义的配置(比如继承自ConfigurationSection和ConfigurationElement的配置类),当然还有一部分是第三方类库的配置(其实也是自定义的配置,比如AOP框...
阅读全文
摘要:疑惑前段时间一直再用Entity Framework 6,写了一些公用的方法,在这个过程中发现了DbContext实现的接口IObjectContextAdapter,可以通过这个接口访问到更底层的ObjectContext对象,比如((IObjectContextAdapter)ctx).Obje...
阅读全文
摘要:Q: How to change parameter values in configuration files dynamicallyIn the first section http://www.cnblogs.com/delexios/p/4933300.html, I mentioned 5...
阅读全文
摘要:I will use a example of my project to show how to use MS Build and MS Deploy in a real project and situation.First of all, I should put the URLs of MS...
阅读全文
摘要:There are three ways to 'throw' a exception in C# C#中有三种抛出异常的方式Use the throw keyword without an identifier 直接使用throw关键字Use the throw keyword with the ...
阅读全文

浙公网安备 33010602011771号