예제 #1
0
 public PowerRepository(string connString) : this()
 {
     DbContext = new PowerDbContext(connString);
 }
예제 #2
0
 public PowerRepository(PowerDbContext dbContext)
 {
     DbContext = dbContext;
 }
예제 #3
0
 /// <summary>
 /// 创建一个新的数据仓库泛型基类对象
 /// </summary>
 public PowerRepository()
 {
     DbContext = new PowerDbContext();
 }