예제 #1
0
        public void WhenExplicitDeclaredThenRecognizePoid()
        {
            var orm = new ObjectRelationalMapper();

            orm.Poid <MyClass>(mc => mc.EMail);
            orm.IsPersistentId(typeof(MyClass).GetProperty("EMail")).Should().Be.True();
        }
예제 #2
0
        public void WhenNotExplicitDeclaredThenNotRecognizePoid()
        {
            var orm = new ObjectRelationalMapper();

            orm.IsPersistentId(typeof(MyClass).GetProperty("EMail")).Should().Be.False();
        }
예제 #3
0
        public void RecognizePoidAsPersistentId()
        {
            PropertyInfo pi = typeof(TestEntity).GetProperty("Id");

            mapper.IsPersistentId(pi).Should().Be.True();
        }