/// <summary> /// Initializes a new instance of the <see cref="CacheDatabaseServices"/> class. /// </summary> /// <param name="databaseConfiguration">The database configuration.</param> public CacheDatabaseServices(IRuntimeDatabaseConfiguration databaseConfiguration) { _configuration = databaseConfiguration; _objectFactory = new CacheDatabaseObjectFactory(this); _transactionService = new CacheTransactionService(this); _executionService = new CacheExecutionService(this); _dmlService = new CacheDMLService(this); _introspectionService = new CacheIntrospectionService(this); }
public DB2LUWDatabaseServices(IRuntimeDatabaseConfiguration databaseConfiguration) { configuration = databaseConfiguration; objectFactory = new DB2LUWDatabaseObjectFactory(this); transactionService = new DB2LUWTransactionService(this); executionService = new DB2LUWExecutionService(this); dmlService = new DB2LUWDMLService(this); introspectionService = new DB2LUWIntrospectionService(this); }
public DatabaseServices(IRuntimeDatabaseConfiguration databaseConfiguration) { configuration = databaseConfiguration; objectFactory = new DatabaseObjectFactory(this); transactionService = new TransactionService.TransactionService(this); executionService = new ExecutionService.ExecutionService(this); dmlService = new DMLService.DMLService(this); introspectionService = new IntrospectionService.IntrospectionService(this); }
public iDB2DatabaseServices(IRuntimeDatabaseConfiguration databaseConfiguration) { configuration = databaseConfiguration; objectFactory = new IDB2DatabaseObjectFactory(this); transactionService = new iDB2TransactionService(this); executionService = new iDB2ExecutionService(this); dmlService = new iDB2DMLService(this); introspectionService = new iDB2IntrospectionService(this); }
public MySQLDatabaseServices(IRuntimeDatabaseConfiguration databaseConfiguration) { configuration = databaseConfiguration; objectFactory = new MySQLDatabaseObjectFactory(this); transactionService = new MySQLTransactionService(this); executionService = new MySQLExecutionService(this); dmlService = new MySQLDMLService(this); introspectionService = new MySQLIntrospectionService(this); }
/// <summary> /// Returns a list of table sources (e.g. tables, views) that belong to a given database. This extension method doesn't filter any table source. /// </summary> /// <param name="introspectionService">IIntrospectionService to use</param> /// <param name="database">Database from which we want to fetch the list of tables</param> /// <returns>List of available table sources in the given database</returns> /// <exception cref="System.Data.Common.DbException">if an error occurs while accessing the database</exception> public static IEnumerable <ITableSourceInfo> ListTableSourcesWithoutFilter(this IIntrospectionService introspectionService, IDatabaseInfo database) { return(introspectionService.ListTableSources(database, dummy => false)); }