public override bool ShouldDeleteFromDb()
 {
     return((ExistingItem != null && RequiredItem == null) ||
            (ExistingItem != null && !ExistingItem.Equals(RequiredItem)));
 }
Пример #2
0
 public override bool ShouldAlterInDb()
 {
     return(ExistingItem != null && RequiredItem != null && !ExistingItem.Equals(RequiredItem));
 }