随笔分类 -  Programming in C#

总结MCSD备考之前学习总结内容
摘要:疑惑前段时间一直再用Entity Framework 6,写了一些公用的方法,在这个过程中发现了DbContext实现的接口IObjectContextAdapter,可以通过这个接口访问到更底层的ObjectContext对象,比如((IObjectContextAdapter)ctx).Obje... 阅读全文
posted @ 2015-11-09 17:07 Delexios 阅读(559) 评论(0) 推荐(1)
摘要: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 ... 阅读全文
posted @ 2015-11-02 18:45 Delexios 阅读(263) 评论(0) 推荐(0)