/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public PerformanceMeasureExpectedSubcategoryOptionUpdate(PerformanceMeasureExpectedUpdate performanceMeasureExpectedUpdate, PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption, PerformanceMeasure performanceMeasure, PerformanceMeasureSubcategory performanceMeasureSubcategory) : this() { // Mark this as a new object by setting primary key with special value this.PerformanceMeasureExpectedSubcategoryOptionUpdateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.PerformanceMeasureExpectedUpdateID = performanceMeasureExpectedUpdate.PerformanceMeasureExpectedUpdateID; this.PerformanceMeasureExpectedUpdate = performanceMeasureExpectedUpdate; performanceMeasureExpectedUpdate.PerformanceMeasureExpectedSubcategoryOptionUpdates.Add(this); this.PerformanceMeasureSubcategoryOptionID = performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionID; this.PerformanceMeasureSubcategoryOption = performanceMeasureSubcategoryOption; performanceMeasureSubcategoryOption.PerformanceMeasureExpectedSubcategoryOptionUpdates.Add(this); this.PerformanceMeasureID = performanceMeasure.PerformanceMeasureID; this.PerformanceMeasure = performanceMeasure; performanceMeasure.PerformanceMeasureExpectedSubcategoryOptionUpdates.Add(this); this.PerformanceMeasureSubcategoryID = performanceMeasureSubcategory.PerformanceMeasureSubcategoryID; this.PerformanceMeasureSubcategory = performanceMeasureSubcategory; performanceMeasureSubcategory.PerformanceMeasureExpectedSubcategoryOptionUpdates.Add(this); }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static PerformanceMeasureExpectedSubcategoryOptionUpdate CreateNewBlank(PerformanceMeasureExpectedUpdate performanceMeasureExpectedUpdate, PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption, PerformanceMeasure performanceMeasure, PerformanceMeasureSubcategory performanceMeasureSubcategory) { return(new PerformanceMeasureExpectedSubcategoryOptionUpdate(performanceMeasureExpectedUpdate, performanceMeasureSubcategoryOption, performanceMeasure, performanceMeasureSubcategory)); }