Esempio n. 1
0
 /// <summary>
 /// 构造方法
 /// <param name="dbType">数据库类型</param>
 /// <param name="connStr">连接字符串</param>
 /// </summary>
 public BaseRepository(DatabaseType dbType, string connStr)
 {
     _db = new DBContext(dbType, connStr);
 }
Esempio n. 2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public BaseRepository(DBContext dbContext)
 {
     _db = dbContext;
 }
Esempio n. 3
0
 /// <summary>
 /// 构造方法
 /// <param name="connStrName">连接字符串中的名称</param>
 /// </summary>
 public BaseRepository(string connStrName)
 {
     _db = new DBContext(connStrName);
 }
Esempio n. 4
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public BaseRepository()
 {
     _db = new DBContext();
 }