예제 #1
0
 public void CategorySelfReferenceIsManyToOne() {
     var config = new TestConfig();
     Assert.Equal(RelationshipType.ManyToOne, config.GetMap<Category>().Columns["Parent"].Relationship);
 }
예제 #2
0
 public void PairReferencedByHasGoodOppositeColumn() {
     var config = new TestConfig();
     Assert.Equal("References", config.GetMap<Pair>().Columns["ReferencedBy"].OppositeColumn.Name);
 }
예제 #3
0
 public void CategorySelfReferenceIsOneToMany() {
     var config = new TestConfig();
     Assert.Equal(RelationshipType.OneToMany, config.GetMap<Category>().Columns["Children"].Relationship);
 }
예제 #4
0
 public void OneToOneLeftHasGoodOppositeColumn() {
     var config = new TestConfig();
     Assert.Equal("Left", config.GetMap<OneToOneLeft>().Columns["Right"].OppositeColumn.Name);
 }
예제 #5
0
 public void PairReferencedByIsOneToOneSelfReference() {
     var config = new TestConfig();
     Assert.Equal(RelationshipType.OneToOne, config.GetMap<Pair>().Columns["ReferencedBy"].Relationship);
 }
예제 #6
0
        public void CategorySelfReferenceIsManyToOne()
        {
            var config = new TestConfig();

            Assert.Equal(RelationshipType.ManyToOne, config.GetMap <Category>().Columns["Parent"].Relationship);
        }
예제 #7
0
 public void OneToOneRightIsOneToOne() {
     var config = new TestConfig();
     Assert.Equal(RelationshipType.OneToOne, config.GetMap<OneToOneRight>().Columns["Left"].Relationship);
 }
예제 #8
0
        public void CategorySelfReferenceIsOneToMany()
        {
            var config = new TestConfig();

            Assert.Equal(RelationshipType.OneToMany, config.GetMap <Category>().Columns["Children"].Relationship);
        }
예제 #9
0
        public void PairReferencedByHasGoodOppositeColumn()
        {
            var config = new TestConfig();

            Assert.Equal("References", config.GetMap <Pair>().Columns["ReferencedBy"].OppositeColumn.Name);
        }
예제 #10
0
        public void PairReferencedByIsOneToOneSelfReference()
        {
            var config = new TestConfig();

            Assert.Equal(RelationshipType.OneToOne, config.GetMap <Pair>().Columns["ReferencedBy"].Relationship);
        }
예제 #11
0
        public void OneToOneLeftHasGoodOppositeColumn()
        {
            var config = new TestConfig();

            Assert.Equal("Left", config.GetMap <OneToOneLeft>().Columns["Right"].OppositeColumn.Name);
        }
예제 #12
0
        public void OneToOneRightIsOneToOne()
        {
            var config = new TestConfig();

            Assert.Equal(RelationshipType.OneToOne, config.GetMap <OneToOneRight>().Columns["Left"].Relationship);
        }