public void DeleteApplicationLanguage(zAppDev.DotNet.Framework.Identity.Model.ApplicationLanguage applicationlanguage, bool doNotCallDeleteForThis = false, bool isCascaded = false, object calledBy = null) { if (applicationlanguage == null || applicationlanguage.IsTransient()) { return; } if (applicationlanguage.DateTimeFormat != null) { var toDelete = applicationlanguage.DateTimeFormat; applicationlanguage.DateTimeFormat.ApplicationLanguage = null; applicationlanguage.DateTimeFormat = null; DeleteDateTimeFormat(toDelete, false, isCascaded, applicationlanguage); } if (!doNotCallDeleteForThis) { Delete <zAppDev.DotNet.Framework.Identity.Model.ApplicationLanguage>(applicationlanguage, isCascaded); } }
/// <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(ApplicationLanguage compareTo) { return(!this.IsTransient() && !compareTo.IsTransient() && this.Id.Equals(compareTo.Id)); }