/// <summary> /// Initializes a new instance of the <see cref="DatabaseReader"/> class using an existing <see cref="DatabaseSchema"/>. /// </summary> /// <param name="databaseSchema">The database schema. Can be a subclassed version.</param> public DatabaseReader(DatabaseSchema databaseSchema) { _schemaReader = SchemaReaderFactory.Create(databaseSchema.ConnectionString, databaseSchema.Provider); _schemaReader.Owner = databaseSchema.Owner; _db = databaseSchema; }
public DbProviderReaderAdapter(SchemaParameters schemaParameters) : base(schemaParameters) { _schemaReader = SchemaReaderFactory.Create(schemaParameters.ConnectionString, schemaParameters.ProviderName); _schemaReader.Owner = schemaParameters.Owner; }
/// <summary> /// Initializes a new instance of the <see cref="DatabaseReader"/> class for one of the standard providers. /// </summary> /// <param name="connectionString">The connection string.</param> /// <param name="sqlType">Type of the SQL.</param> public DatabaseReader(string connectionString, SqlType sqlType) { _schemaReader = SchemaReaderFactory.Create(connectionString, sqlType); _db = new DatabaseSchema(connectionString, _schemaReader.ProviderName); }