摘要:
Context操作数据AddObject 添加实体将实体添加到集合中,创建实体时,状态为EntityState.Detached当调用AddObject将实体添加到Context时,状态为EntityState.AddedmyContextcontext =newmyContext();myTabr =newmyTab();r.ID = 10;r.a ="wxwinter";Console.WriteLine(r.EntityState);//print:Detachedcontext.AddTomyTab(r);Console.WriteLine(r.EntityStat 阅读全文
posted @ 2011-08-31 17:12
潇湘〃细雨
阅读(541)
评论(0)
推荐(1)
摘要:
一个好的程序员,每次在面对一些新知识的时候,他们总会在想,如何去抓住深层次的东西。今天我们就来研究研究MVC的流程。 因为在使用ASP.NET MVC开发的时候,我们首先接触到的是路由,亦传说中的System.Web.Routing.RouteTable,Reflection该类的代码如下:private static RouteCollection _instance = new RouteCollection();public static RouteCollection Routes{ [TargetedPatchingOptOut("Performance critical. 阅读全文
posted @ 2011-08-31 11:05
潇湘〃细雨
阅读(331)
评论(0)
推荐(0)

浙公网安备 33010602011771号