public void DeletetblCustomsOveralMonitoring(DSS4_ECompliance.BO.tblCustomsOveralMonitoring tblcustomsoveralmonitoring, bool doNotCallDeleteForThis = false, bool isCascaded = false, object calledBy = null) { if (tblcustomsoveralmonitoring == null || tblcustomsoveralmonitoring.IsTransient()) { return; } tblcustomsoveralmonitoring.tblCustomsFinder = null; if (!doNotCallDeleteForThis) { Delete <DSS4_ECompliance.BO.tblCustomsOveralMonitoring>(tblcustomsoveralmonitoring, 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(tblCustomsOveralMonitoring compareTo) { return(!this.IsTransient() && !compareTo.IsTransient() && this.MonitoringID.Equals(compareTo.MonitoringID)); }