/// <summary> /// 初始化数据访问基类对象 /// </summary> /// <param name="connectionString"></param> protected internal BaseDataProvider(string connectionString) { this.m_connectionString = connectionString; this.m_database = new DbHelper(connectionString); this.m_pagerHelper = new PagerManager(this.m_database); }
/// <summary> /// 初始化数据访问基类对象 /// </summary> /// <param name="database"></param> protected internal BaseDataProvider(DbHelper database) { this.m_database = database; this.m_connectionString = database.ConnectionString; this.m_pagerHelper = new PagerManager(this.m_database); }