示例#1
0
            public void ReturnsRegisteredFkProperty()
            {
                var finder = new ForeignKeyFinderFinder();
                finder.RegisterForeignKey(typeof(Person), "_AddressId", "Address");

                Assert.Equal("_AddressId", finder.Find(typeof(Person).GetProperty("Address")).Name);
            }
示例#2
0
            public void ReturnsDefaultFkProperty()
            {
                var finder = new ForeignKeyFinderFinder();
                var prop   = finder.Find(typeof(Person).GetProperty("Address"));

                Assert.Equal("AddressId", prop.Name);
            }
示例#3
0
            public void ReturnsDefaultFkProperty()
            {
                var finder = new ForeignKeyFinderFinder();
                var prop = finder.Find(typeof (Person).GetProperty("Address"));

                Assert.Equal("AddressId", prop.Name);
            }
示例#4
0
            public void ReturnsRegisteredFkProperty()
            {
                var finder = new ForeignKeyFinderFinder();

                finder.RegisterForeignKey(typeof(Person), "_AddressId", "Address");

                Assert.Equal("_AddressId", finder.Find(typeof(Person).GetProperty("Address")).Name);
            }