Пример #1
0
        private static SharedSchemaMigrator GetSharedMigrator()
        {
            var connector   = new Connector();
            var dbAssistant = new DatabaseAssistant();

            return(new SharedSchemaMigrator(connector, dbAssistant));
        }
Пример #2
0
        private static OrganizationMigrator GetOrgMigrator(string org)
        {
            var connector   = new Connector();
            var dbAssistant = new DatabaseAssistant();

            return(new OrganizationMigrator(connector, dbAssistant, org));
        }
Пример #3
0
 public BaseMigrator(Connector connector, DatabaseAssistant migrator, string schema)
 {
     this.schema         = schema;
     this.migrator       = migrator;
     connection          = connector.Connect(schema);
     migrator.Connection = connection;
 }
Пример #4
0
 public OrganizationMigrator(Connector connector, DatabaseAssistant migrator, string organization) : base(connector, migrator, organization)
 {
 }
Пример #5
0
 public SharedSchemaMigrator(Connector connector, DatabaseAssistant migrator) : base(connector, migrator, "meetaroo_shared")
 {
 }