随笔分类 - Programming in C#
总结MCSD备考之前学习总结内容
摘要:疑惑前段时间一直再用Entity Framework 6,写了一些公用的方法,在这个过程中发现了DbContext实现的接口IObjectContextAdapter,可以通过这个接口访问到更底层的ObjectContext对象,比如((IObjectContextAdapter)ctx).Obje...
阅读全文
摘要: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号