Beispiel #1
0
 public void DeletetblCustomsFinder(DSS4_ECompliance.BO.tblCustomsFinder tblcustomsfinder, bool doNotCallDeleteForThis = false, bool isCascaded = false, object calledBy = null)
 {
     if (tblcustomsfinder == null || tblcustomsfinder.IsTransient())
     {
         return;
     }
     foreach (var toDissasociate in this.Get <DSS4_ECompliance.BO.tblCustomsOveralMonitoring>(ap => ap.tblCustomsFinder == tblcustomsfinder))
     {
         toDissasociate.tblCustomsFinder = null;
     }
     if (!doNotCallDeleteForThis)
     {
         Delete <DSS4_ECompliance.BO.tblCustomsFinder>(tblcustomsfinder, isCascaded);
     }
 }
Beispiel #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(tblCustomsFinder compareTo)
        {
            return(!this.IsTransient() && !compareTo.IsTransient() && this.FinderID.Equals(compareTo.FinderID));
        }