Exemple #1
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public WaterQualityManagementPlanVerifyTreatmentBMP(WaterQualityManagementPlanVerify waterQualityManagementPlanVerify, TreatmentBMP treatmentBMP) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.WaterQualityManagementPlanVerifyTreatmentBMPID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.WaterQualityManagementPlanVerifyID             = waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifyID;
     this.WaterQualityManagementPlanVerify = waterQualityManagementPlanVerify;
     waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifyTreatmentBMPs.Add(this);
     this.TreatmentBMPID = treatmentBMP.TreatmentBMPID;
     this.TreatmentBMP   = treatmentBMP;
     treatmentBMP.WaterQualityManagementPlanVerifyTreatmentBMPs.Add(this);
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public WaterQualityManagementPlanVerifySourceControlBMP(WaterQualityManagementPlanVerify waterQualityManagementPlanVerify, SourceControlBMP sourceControlBMP) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.WaterQualityManagementPlanVerifySourceControlBMPID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.WaterQualityManagementPlanVerifyID = waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifyID;
     this.WaterQualityManagementPlanVerify   = waterQualityManagementPlanVerify;
     waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifySourceControlBMPs.Add(this);
     this.SourceControlBMPID = sourceControlBMP.SourceControlBMPID;
     this.SourceControlBMP   = sourceControlBMP;
     sourceControlBMP.WaterQualityManagementPlanVerifySourceControlBMPs.Add(this);
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public WaterQualityManagementPlanVerifyPhoto(WaterQualityManagementPlanVerify waterQualityManagementPlanVerify, WaterQualityManagementPlanPhoto waterQualityManagementPlanPhoto) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.WaterQualityManagementPlanVerifyPhotoID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.WaterQualityManagementPlanVerifyID      = waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifyID;
     this.WaterQualityManagementPlanVerify        = waterQualityManagementPlanVerify;
     waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifyPhotos.Add(this);
     this.WaterQualityManagementPlanPhotoID = waterQualityManagementPlanPhoto.WaterQualityManagementPlanPhotoID;
     this.WaterQualityManagementPlanPhoto   = waterQualityManagementPlanPhoto;
     waterQualityManagementPlanPhoto.WaterQualityManagementPlanVerifyPhotos.Add(this);
 }
Exemple #4
0
 public static string GetDetailUrl(this WaterQualityManagementPlanVerify waterQualityManagementPlanVerify)
 {
     return(DetailUrlTemplate.ParameterReplace(waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifyID));
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static WaterQualityManagementPlanVerifySourceControlBMP CreateNewBlank(WaterQualityManagementPlanVerify waterQualityManagementPlanVerify, SourceControlBMP sourceControlBMP)
 {
     return(new WaterQualityManagementPlanVerifySourceControlBMP(waterQualityManagementPlanVerify, sourceControlBMP));
 }
Exemple #6
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 #7
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static WaterQualityManagementPlanVerifyTreatmentBMP CreateNewBlank(WaterQualityManagementPlanVerify waterQualityManagementPlanVerify, TreatmentBMP treatmentBMP)
 {
     return(new WaterQualityManagementPlanVerifyTreatmentBMP(waterQualityManagementPlanVerify, treatmentBMP));
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static WaterQualityManagementPlanVerifyPhoto CreateNewBlank(WaterQualityManagementPlanVerify waterQualityManagementPlanVerify, WaterQualityManagementPlanPhoto waterQualityManagementPlanPhoto)
 {
     return(new WaterQualityManagementPlanVerifyPhoto(waterQualityManagementPlanVerify, waterQualityManagementPlanPhoto));
 }
 public static void DeleteWaterQualityManagementPlanVerify(this IQueryable <WaterQualityManagementPlanVerify> waterQualityManagementPlanVerifies, WaterQualityManagementPlanVerify waterQualityManagementPlanVerifyToDelete)
 {
     DeleteWaterQualityManagementPlanVerify(waterQualityManagementPlanVerifies, new List <WaterQualityManagementPlanVerify> {
         waterQualityManagementPlanVerifyToDelete
     });
 }