Exemple #1
0
 ///<inheritdoc/>
 public virtual void LoadDbAdapter()
 {
     Config.FilterSchema  = SchemaName;
     Config.IncludedTable = DbObjectName;
     Config.LoadUserDefinedTables(Connector, AppDbContext);
     Config.DatabaseConnectorName = Connector.Name;
     SchemaInitializer.Initilize();
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 ///<inheritdoc/>
 public virtual void LoadSchema()
 {
     Config.FilterSchema          = SchemaName;
     Config.DatabaseConnectorName = Connector.Name;
     SchemaInitializer.Initilize();
 }
Exemple #5
0
 ///<inheritdoc/>
 public virtual void LoadProc()
 {
     Config.FilterSchema            = SchemaName;
     Config.IncludedStoredProcedure = DbObjectName;
     SchemaInitializer.Initilize();
 }