示例#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();
 }