public void DeletetblCustomsWayPointRisk(DSS4_ECompliance.BO.tblCustomsWayPointRisk tblcustomswaypointrisk, bool doNotCallDeleteForThis = false, bool isCascaded = false, object calledBy = null) { if (tblcustomswaypointrisk == null || tblcustomswaypointrisk.IsTransient()) { return; } tblcustomswaypointrisk.tblCustomsWayPoint = null; if (!doNotCallDeleteForThis) { Delete <DSS4_ECompliance.BO.tblCustomsWayPointRisk>(tblcustomswaypointrisk, 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(tblCustomsWayPointRisk compareTo) { return(!this.IsTransient() && !compareTo.IsTransient() && this.WaypointriskID.Equals(compareTo.WaypointriskID)); }