Beispiel #1
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public WaterQualityManagementPlanVerify(WaterQualityManagementPlan waterQualityManagementPlan, WaterQualityManagementPlanVerifyType waterQualityManagementPlanVerifyType, WaterQualityManagementPlanVisitStatus waterQualityManagementPlanVisitStatus, Person lastEditedByPerson, DateTime lastEditedDate, bool isDraft, DateTime verificationDate) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.WaterQualityManagementPlanVerifyID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.WaterQualityManagementPlanID       = waterQualityManagementPlan.WaterQualityManagementPlanID;
     this.WaterQualityManagementPlan         = waterQualityManagementPlan;
     waterQualityManagementPlan.WaterQualityManagementPlanVerifies.Add(this);
     this.WaterQualityManagementPlanVerifyTypeID = waterQualityManagementPlanVerifyType.WaterQualityManagementPlanVerifyTypeID;
     this.WaterQualityManagementPlanVerifyType   = waterQualityManagementPlanVerifyType;
     waterQualityManagementPlanVerifyType.WaterQualityManagementPlanVerifies.Add(this);
     this.WaterQualityManagementPlanVisitStatusID = waterQualityManagementPlanVisitStatus.WaterQualityManagementPlanVisitStatusID;
     this.WaterQualityManagementPlanVisitStatus   = waterQualityManagementPlanVisitStatus;
     waterQualityManagementPlanVisitStatus.WaterQualityManagementPlanVerifies.Add(this);
     this.LastEditedByPersonID = lastEditedByPerson.PersonID;
     this.LastEditedByPerson   = lastEditedByPerson;
     lastEditedByPerson.WaterQualityManagementPlanVerifiesWhereYouAreTheLastEditedByPerson.Add(this);
     this.LastEditedDate   = lastEditedDate;
     this.IsDraft          = isDraft;
     this.VerificationDate = verificationDate;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static WaterQualityManagementPlanVerify CreateNewBlank(WaterQualityManagementPlan waterQualityManagementPlan, WaterQualityManagementPlanVerifyType waterQualityManagementPlanVerifyType, WaterQualityManagementPlanVisitStatus waterQualityManagementPlanVisitStatus, Person lastEditedByPerson)
 {
     return(new WaterQualityManagementPlanVerify(waterQualityManagementPlan, waterQualityManagementPlanVerifyType, waterQualityManagementPlanVisitStatus, lastEditedByPerson, default(DateTime), default(bool), default(DateTime)));
 }
Beispiel #3
0
 public static void DeleteWaterQualityManagementPlanVerifyType(this IQueryable <WaterQualityManagementPlanVerifyType> waterQualityManagementPlanVerifyTypes, WaterQualityManagementPlanVerifyType waterQualityManagementPlanVerifyTypeToDelete)
 {
     DeleteWaterQualityManagementPlanVerifyType(waterQualityManagementPlanVerifyTypes, new List <WaterQualityManagementPlanVerifyType> {
         waterQualityManagementPlanVerifyTypeToDelete
     });
 }