Example #1
0
        public CreateTableSchema(string tableName)
        {
            this.TableName = tableName;

            this.primaryKeys = new Dictionary <string, PrimaryKeyColumn>();
            this.columns     = new Dictionary <string, MigrationColumn>();
            this.foreignKeys = new Dictionary <string, ForeignKeyColumn>();

            this.seedTable = new SeedTableSchema(this.TableName);
        }
Example #2
0
 public SeedTableSchema SeedTable(string tableName)
 {
     if (this.HasSeedTable(tableName))
     {
         return(this.GetSeedTable(tableName));
     }
     else
     {
         var result = new SeedTableSchema(tableName);
         this.tablesToSeed[tableName] = result;
         return(result);
     }
 }