/// <summary> /// Enum types are equal by primary key /// </summary> public bool Equals(StormwaterJurisdictionPublicWQMPVisibilityType other) { if (other == null) { return(false); } return(other.StormwaterJurisdictionPublicWQMPVisibilityTypeID == StormwaterJurisdictionPublicWQMPVisibilityTypeID); }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static StormwaterJurisdiction CreateNewBlank(Organization organization, StateProvince stateProvince, StormwaterJurisdictionPublicBMPVisibilityType stormwaterJurisdictionPublicBMPVisibilityType, StormwaterJurisdictionPublicWQMPVisibilityType stormwaterJurisdictionPublicWQMPVisibilityType) { return(new StormwaterJurisdiction(organization, stateProvince, stormwaterJurisdictionPublicBMPVisibilityType, stormwaterJurisdictionPublicWQMPVisibilityType)); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public StormwaterJurisdiction(Organization organization, StateProvince stateProvince, StormwaterJurisdictionPublicBMPVisibilityType stormwaterJurisdictionPublicBMPVisibilityType, StormwaterJurisdictionPublicWQMPVisibilityType stormwaterJurisdictionPublicWQMPVisibilityType) : this() { // Mark this as a new object by setting primary key with special value this.StormwaterJurisdictionID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.OrganizationID = organization.OrganizationID; this.Organization = organization; this.StateProvinceID = stateProvince.StateProvinceID; this.StateProvince = stateProvince; stateProvince.StormwaterJurisdictions.Add(this); this.StormwaterJurisdictionPublicBMPVisibilityTypeID = stormwaterJurisdictionPublicBMPVisibilityType.StormwaterJurisdictionPublicBMPVisibilityTypeID; this.StormwaterJurisdictionPublicWQMPVisibilityTypeID = stormwaterJurisdictionPublicWQMPVisibilityType.StormwaterJurisdictionPublicWQMPVisibilityTypeID; }