Пример #1
0
 public BaseDAL()
 {
     db    = ContextFactory.GetCurrentContext("zhiyin");
     dbSet = db.Set <T>();
 }
Пример #2
0
 public BaseDAL(string key)
 {
     db    = ContextFactory.GetCurrentContext(key);
     dbSet = db.Set <T>();
 }