Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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);
 }