示例#1
0
 public void CreateReferences(ISqlDumper dmp, IDatabaseStructure db)
 {
     foreach (var table in db.Tables)
     {
         dmp.CreateConstraints(table.GetConstraints <IForeignKey, IConstraint>());
     }
 }
示例#2
0
        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,
            });
        }