Esempio n. 1
0
 /// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(HRUCharacteristicLandUseCode other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.HRUCharacteristicLandUseCodeID == HRUCharacteristicLandUseCodeID);
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static HRUCharacteristic CreateNewBlank(HRUCharacteristicLandUseCode hRUCharacteristicLandUseCode, LoadGeneratingUnit loadGeneratingUnit, HRUCharacteristicLandUseCode baselineHRUCharacteristicLandUseCode)
 {
     return(new HRUCharacteristic(default(string), default(int), default(double), default(DateTime), default(double), hRUCharacteristicLandUseCode, loadGeneratingUnit, default(double), baselineHRUCharacteristicLandUseCode));
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public HRUCharacteristic(string hydrologicSoilGroup, int slopePercentage, double imperviousAcres, DateTime lastUpdated, double area, HRUCharacteristicLandUseCode hRUCharacteristicLandUseCode, LoadGeneratingUnit loadGeneratingUnit, double baselineImperviousAcres, HRUCharacteristicLandUseCode baselineHRUCharacteristicLandUseCode) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.HRUCharacteristicID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.HydrologicSoilGroup = hydrologicSoilGroup;
     this.SlopePercentage     = slopePercentage;
     this.ImperviousAcres     = imperviousAcres;
     this.LastUpdated         = lastUpdated;
     this.Area = area;
     this.HRUCharacteristicLandUseCodeID = hRUCharacteristicLandUseCode.HRUCharacteristicLandUseCodeID;
     this.LoadGeneratingUnitID           = loadGeneratingUnit.LoadGeneratingUnitID;
     this.LoadGeneratingUnit             = loadGeneratingUnit;
     loadGeneratingUnit.HRUCharacteristics.Add(this);
     this.BaselineImperviousAcres = baselineImperviousAcres;
     this.BaselineHRUCharacteristicLandUseCodeID = baselineHRUCharacteristicLandUseCode.HRUCharacteristicLandUseCodeID;
 }