/// <summary> /// Initializes a new instance of the DbDalc for specified factory and connection string. /// </summary> public DbDalc(IDbProviderFactory factory, string connectionStr) { DbFactory = factory; Connection = factory.CreateConnection(); Connection.ConnectionString = connectionStr; CommandGenerator = new DbCommandGenerator(factory); }
/// <summary> /// Initializes a new instance of the DbDalc with specified factory and connection. /// </summary> public DbDalc(IDbProviderFactory factory, IDbConnection connection) { DbFactory = factory; Connection = connection; CommandGenerator = new DbCommandGenerator(factory); }