public void CreateReferences(ISqlDumper dmp, IDatabaseStructure db) { foreach (var table in db.Tables) { dmp.CreateConstraints(table.GetConstraints <IForeignKey, IConstraint>()); } }
public virtual void WriteStructureAfterData(IDatabaseStructure db) { // create other database objects than tables and create foreign keys foreach (var table in db.Tables) { m_dmp.CreateConstraints(table.GetConstraints <IForeignKey, IConstraint>()); } m_dmp.CreateDatabaseObjects(db, new CreateDatabaseObjectsProps { CreateSchemata = false, CreateTables = false, CreateFixedData = false, CreateDomains = false, }); }