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