MVC
朝三暮四
顶替2
展开
-
MVC实现通用的增删改查。使用接口(三)学习
在IDAL层增加IBase类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Dulei.Model; namespace Dulei.IDAL { /// /// 抽象里所有的数据库访问层Dal实例的公共的方法约束。 ///原创 2013-12-23 00:18:43 · 6120 阅读 · 0 评论 -
MVC实现增、删、改、查、批删、分页(二)学习
在UserInfoEFDAL类下 using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using Dulei.IDAL; using Dulei.Model; namespace Dulei.DAL { public cl...原创 2013-12-22 23:26:29 · 1510 阅读 · 0 评论 -
MVC保证线程内实例唯一(5)
usingSystem; usingSystem.Collections.Generic; usingSystem.Data.Entity; usingSystem.Linq; usingSystem.Text; usingDulei.Model; namespaceDulei.DAL { public...原创 2013-12-23 21:07:56 · 2089 阅读 · 0 评论 -
MVC实现EF模型随意切换(四)学习
1减少脏数据 2提高数据的使用的效率 3减少上下文创建的实例 4一个实例被一个线程原创 2013-12-23 20:40:25 · 1108 阅读 · 0 评论