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