Exemplo n.º 1
0
        public void Setup()
        {
            var mappingSet = ModelSetup.SetupModel();

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

            database     = mappingSet.Database;
            table        = database.Tables[0];
            relationship = table.Relationships[0];
            reference    = relationship.MappedReferences().First();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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);
        }