コード例 #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;
 }
コード例 #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)));
 }
 public static void DeleteWaterQualityManagementPlanVisitStatus(this IQueryable <WaterQualityManagementPlanVisitStatus> waterQualityManagementPlanVisitStatuses, WaterQualityManagementPlanVisitStatus waterQualityManagementPlanVisitStatusToDelete)
 {
     DeleteWaterQualityManagementPlanVisitStatus(waterQualityManagementPlanVisitStatuses, new List <WaterQualityManagementPlanVisitStatus> {
         waterQualityManagementPlanVisitStatusToDelete
     });
 }