public static void DeleteQuickBMP(this IQueryable <QuickBMP> quickBMPs, QuickBMP quickBMPToDelete) { DeleteQuickBMP(quickBMPs, new List <QuickBMP> { quickBMPToDelete }); }
/// <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); }
/// <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)); }
public static bool IsFullyParameterized(this QuickBMP x) => x.PercentOfSiteTreated != null && x.PercentCaptured != null && x.PercentRetained != null && x.TreatmentBMPType.IsAnalyzedInModelingModule;