///<inheritdoc/> public virtual void LoadDbAdapter() { Config.FilterSchema = SchemaName; Config.IncludedTable = DbObjectName; Config.LoadUserDefinedTables(Connector, AppDbContext); Config.DatabaseConnectorName = Connector.Name; SchemaInitializer.Initilize(); }
public void InitializeSchema() { var config = new Config(); var schemaBuilder = new Mock <IDbSchemaBuilder>(); var schmea = new SchemaInitializer(config, schemaBuilder.Object, Mock.Of <IDbSchema>()); schmea.Initilize(); schemaBuilder.Verify(c => c.GetTableViews(), Times.Once); schemaBuilder.Verify(c => c.GetStoredProcedures(), Times.Once); }
public void InitializeTable() { var config = new Config { IncludedTable = "tbl" }; var schemaBuilder = new Mock <IDbSchemaBuilder>(); var schmea = new SchemaInitializer(config, schemaBuilder.Object, Mock.Of <IDbSchema>() ); schmea.Initilize(); schemaBuilder.Verify(c => c.GetColumns(), Times.Once); }
///<inheritdoc/> public virtual void LoadSchema() { Config.FilterSchema = SchemaName; Config.DatabaseConnectorName = Connector.Name; SchemaInitializer.Initilize(); }
///<inheritdoc/> public virtual void LoadProc() { Config.FilterSchema = SchemaName; Config.IncludedStoredProcedure = DbObjectName; SchemaInitializer.Initilize(); }