public void Operation_CanBeUpdated()
        {
            var operation = new UpdateOperation("test", "1234");

            Assert.False(operation.IsUpdated);
            operation.Update();
            Assert.Equal(2, operation.Version);
            Assert.True(operation.IsUpdated);
        }
示例#2
0
 public static void Update(IEntity obj, String propertyName)
 {
     UpdateOperation.Update(obj, new String[] { propertyName });
 }
示例#3
0
 public static void Update(IEntity obj, String[] arrPropertyName)
 {
     UpdateOperation.Update(obj, arrPropertyName);
 }
示例#4
0
 public static Result Update(IEntity obj)
 {
     return(UpdateOperation.Update(obj));
 }