예제 #1
0
 public void DeleteApplicationSetting(zAppDev.DotNet.Framework.Identity.Model.ApplicationSetting applicationsetting, bool doNotCallDeleteForThis = false, bool isCascaded = false, object calledBy = null)
 {
     if (applicationsetting == null || applicationsetting.IsTransient())
     {
         return;
     }
     if (!doNotCallDeleteForThis)
     {
         Delete <zAppDev.DotNet.Framework.Identity.Model.ApplicationSetting>(applicationsetting, isCascaded);
     }
 }
예제 #2
0
 /// <summary>
 ///     Returns true if self and the provided entity have the same Id values
 ///     and the Ids are not of the default Id value
 /// </summary>
 protected bool HasSameNonDefaultIdAs(ApplicationSetting compareTo)
 {
     return(!this.IsTransient() && !compareTo.IsTransient() && this.Id.Equals(compareTo.Id));
 }