/// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(RegionalSubbasinRevisionRequestStatus other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.RegionalSubbasinRevisionRequestStatusID == RegionalSubbasinRevisionRequestStatusID);
 }
Exemple #2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static RegionalSubbasinRevisionRequest CreateNewBlank(TreatmentBMP treatmentBMP, Person requestPerson, RegionalSubbasinRevisionRequestStatus regionalSubbasinRevisionRequestStatus)
 {
     return(new RegionalSubbasinRevisionRequest(treatmentBMP, default(DbGeometry), requestPerson, regionalSubbasinRevisionRequestStatus, default(DateTime)));
 }
Exemple #3
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public RegionalSubbasinRevisionRequest(TreatmentBMP treatmentBMP, DbGeometry regionalSubbasinRevisionRequestGeometry, Person requestPerson, RegionalSubbasinRevisionRequestStatus regionalSubbasinRevisionRequestStatus, DateTime requestDate) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.RegionalSubbasinRevisionRequestID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.TreatmentBMPID = treatmentBMP.TreatmentBMPID;
     this.TreatmentBMP   = treatmentBMP;
     treatmentBMP.RegionalSubbasinRevisionRequests.Add(this);
     this.RegionalSubbasinRevisionRequestGeometry = regionalSubbasinRevisionRequestGeometry;
     this.RequestPersonID = requestPerson.PersonID;
     this.RequestPerson   = requestPerson;
     requestPerson.RegionalSubbasinRevisionRequestsWhereYouAreTheRequestPerson.Add(this);
     this.RegionalSubbasinRevisionRequestStatusID = regionalSubbasinRevisionRequestStatus.RegionalSubbasinRevisionRequestStatusID;
     this.RequestDate = requestDate;
 }