Пример #1
0
 private void CreateTables()
 {
     LogMessage("Generating create tables");
     if (_options.TableOptions.CreateTables)
     {
         _tables.ForEach(x => _dmp.CreateTable(x.WithoutIndexes().WithoutReferences()));
     }
     LogMessage("Generating create indexes");
     if (_options.TableOptions.CreateIndexes)
     {
         _tables.SelectMany(x => x.Indexes).ToList().ForEach(x => _dmp.CreateIndex(x));
     }
 }