Exemple #1
0
 public static void DeleteQuickBMP(this IQueryable <QuickBMP> quickBMPs, QuickBMP quickBMPToDelete)
 {
     DeleteQuickBMP(quickBMPs, new List <QuickBMP> {
         quickBMPToDelete
     });
 }
Exemple #2
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public WaterQualityManagementPlanVerifyQuickBMP(WaterQualityManagementPlanVerify waterQualityManagementPlanVerify, QuickBMP quickBMP) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.WaterQualityManagementPlanVerifyQuickBMPID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.WaterQualityManagementPlanVerifyID         = waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifyID;
     this.WaterQualityManagementPlanVerify           = waterQualityManagementPlanVerify;
     waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifyQuickBMPs.Add(this);
     this.QuickBMPID = quickBMP.QuickBMPID;
     this.QuickBMP   = quickBMP;
     quickBMP.WaterQualityManagementPlanVerifyQuickBMPs.Add(this);
 }
Exemple #3
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static WaterQualityManagementPlanVerifyQuickBMP CreateNewBlank(WaterQualityManagementPlanVerify waterQualityManagementPlanVerify, QuickBMP quickBMP)
 {
     return(new WaterQualityManagementPlanVerifyQuickBMP(waterQualityManagementPlanVerify, quickBMP));
 }
Exemple #4
0
 public static bool IsFullyParameterized(this QuickBMP x) =>
 x.PercentOfSiteTreated != null && x.PercentCaptured != null && x.PercentRetained != null && x.TreatmentBMPType.IsAnalyzedInModelingModule;