Exemplo n.º 1
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));
 }
Exemplo n.º 2
0
 public static void DeleteLoadGeneratingUnit(this IQueryable <LoadGeneratingUnit> loadGeneratingUnits, LoadGeneratingUnit loadGeneratingUnitToDelete)
 {
     DeleteLoadGeneratingUnit(loadGeneratingUnits, new List <LoadGeneratingUnit> {
         loadGeneratingUnitToDelete
     });
 }
Exemplo 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;
 }