コード例 #1
0
        public void ObjectStateUnchangedd_ConvertedToEfStateUnchanged()
        {
            var efSate = EfExtensions.ConvertToEFState(ObjectState.UNCHANGED);

            efSate.Should().Be(EntityState.Unchanged);
        }
コード例 #2
0
        public void ObjectStateModified_ConvertedToEfStateModified()
        {
            var efSate = EfExtensions.ConvertToEFState(ObjectState.MODIFIED);

            efSate.Should().Be(EntityState.Modified);
        }
コード例 #3
0
        public void ObjectStateDeleted_ConvertedToEfStateDelated()
        {
            var efSate = EfExtensions.ConvertToEFState(ObjectState.DELETED);

            efSate.Should().Be(EntityState.Deleted);
        }
コード例 #4
0
        public void ObjectStateNew_ConvertedToEfStateAdded()
        {
            var efSate = EfExtensions.ConvertToEFState(ObjectState.NEW);

            efSate.Should().Be(EntityState.Added);
        }