示例#1
0
        public void Setup()
        {
            var mappingSet = ModelSetup.SetupModel();

            database = mappingSet.Database;
            table    = database.Tables[0];
            key      = table.Keys[0];
        }
示例#2
0
        public void Setup()
        {
            var mappingSet = ModelSetup.SetupModel();

            database     = mappingSet.Database;
            table        = database.Tables[0];
            relationship = table.Relationships[0];
            reference    = relationship.MappedReferences().First();
        }
示例#3
0
        public void Setup()
        {
            var mappingSet = ModelSetup.SetupModel();

            database = mappingSet.Database;
            table    = database.Tables[0];
            index    = new Index("index1");
            table.AddIndex(index);
        }
        public void Setup()
        {
            var mappingSet = ModelSetup.SetupModel();
            var entitySet  = mappingSet.EntitySet;

            entity       = entitySet.Entities[0];
            reference    = entity.References[0];
            relationship = reference.MappedRelationship();
        }
示例#5
0
        public void Setup()
        {
            mappingSet = ModelSetup.SetupModel();
            entitySet  = mappingSet.EntitySet;
            db         = mappingSet.Database;
            table1     = db.Tables[0];
            table2     = db.Tables[1];

            table1.CreateRelationshipTo(table2);
        }