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