2015年3月22日

创建上下文对象

摘要: /// /// 负责创建EF上下文对象,保证线程内唯一,在一次请求内,只创建一次该对象 /// public class DbContextFactory { public static DbContext GetCurrentDbConte... 阅读全文

posted @ 2015-03-22 23:12 木屐 阅读(201) 评论(0) 推荐(0) 编辑

DBSesson

摘要: public class DBSesson : IDBSesson { DbContext db = new book_shopEntities(); private IUserInfoDAL _userInfoDAL; public IUserInf... 阅读全文

posted @ 2015-03-22 22:51 木屐 阅读(101) 评论(0) 推荐(0) 编辑

导航