/// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(TreatmentDetailedActivityType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.TreatmentDetailedActivityTypeID == TreatmentDetailedActivityTypeID);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static Treatment CreateNewBlank(Project project, TreatmentType treatmentType, TreatmentDetailedActivityType treatmentDetailedActivityType)
 {
     return(new Treatment(project, default(decimal), treatmentType, treatmentDetailedActivityType));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public Treatment(Project project, decimal treatmentFootprintAcres, TreatmentType treatmentType, TreatmentDetailedActivityType treatmentDetailedActivityType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.TreatmentID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectID   = project.ProjectID;
     this.Project     = project;
     project.Treatments.Add(this);
     this.TreatmentFootprintAcres         = treatmentFootprintAcres;
     this.TreatmentTypeID                 = treatmentType.TreatmentTypeID;
     this.TreatmentDetailedActivityTypeID = treatmentDetailedActivityType.TreatmentDetailedActivityTypeID;
 }