/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public PerformanceMeasureSubcategoryOption(PerformanceMeasureSubcategory performanceMeasureSubcategory, string performanceMeasureSubcategoryOptionName, bool showOnFactSheet) : this() { // Mark this as a new object by setting primary key with special value this.PerformanceMeasureSubcategoryOptionID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.PerformanceMeasureSubcategoryID = performanceMeasureSubcategory.PerformanceMeasureSubcategoryID; this.PerformanceMeasureSubcategory = performanceMeasureSubcategory; performanceMeasureSubcategory.PerformanceMeasureSubcategoryOptions.Add(this); this.PerformanceMeasureSubcategoryOptionName = performanceMeasureSubcategoryOptionName; this.ShowOnFactSheet = showOnFactSheet; }
private PerformanceMeasureReportingPeriodSubcategoryOptionReportedValue(PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod, double?reportedValue, int sortOrder, int performanceMeasureSubcategoryOptionID, PerformanceMeasureSubcategory performanceMeasureSubcategory, string performanceMeasureSubcategoryOptionName, string chartName) { PerformanceMeasureReportingPeriod = performanceMeasureReportingPeriod; ReportedValue = reportedValue; SortOrder = sortOrder; PerformanceMeasureSubcategoryOptionID = performanceMeasureSubcategoryOptionID; PerformanceMeasureSubcategory = performanceMeasureSubcategory; PerformanceMeasureSubcategoryOptionName = performanceMeasureSubcategoryOptionName; ChartName = chartName; }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static PerformanceMeasureActualSubcategoryOptionUpdate CreateNewBlank(PerformanceMeasureActualUpdate performanceMeasureActualUpdate, PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption, PerformanceMeasure performanceMeasure, PerformanceMeasureSubcategory performanceMeasureSubcategory) { return(new PerformanceMeasureActualSubcategoryOptionUpdate(performanceMeasureActualUpdate, performanceMeasureSubcategoryOption, performanceMeasure, performanceMeasureSubcategory)); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public PerformanceMeasureActualSubcategoryOptionUpdate(PerformanceMeasureActualUpdate performanceMeasureActualUpdate, PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption, PerformanceMeasure performanceMeasure, PerformanceMeasureSubcategory performanceMeasureSubcategory) : this() { // Mark this as a new object by setting primary key with special value this.PerformanceMeasureActualSubcategoryOptionUpdateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.PerformanceMeasureActualUpdateID = performanceMeasureActualUpdate.PerformanceMeasureActualUpdateID; this.PerformanceMeasureActualUpdate = performanceMeasureActualUpdate; performanceMeasureActualUpdate.PerformanceMeasureActualSubcategoryOptionUpdates.Add(this); this.PerformanceMeasureSubcategoryOptionID = performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionID; this.PerformanceMeasureSubcategoryOption = performanceMeasureSubcategoryOption; performanceMeasureSubcategoryOption.PerformanceMeasureActualSubcategoryOptionUpdates.Add(this); this.PerformanceMeasureID = performanceMeasure.PerformanceMeasureID; this.PerformanceMeasure = performanceMeasure; performanceMeasure.PerformanceMeasureActualSubcategoryOptionUpdates.Add(this); this.PerformanceMeasureSubcategoryID = performanceMeasureSubcategory.PerformanceMeasureSubcategoryID; this.PerformanceMeasureSubcategory = performanceMeasureSubcategory; performanceMeasureSubcategory.PerformanceMeasureActualSubcategoryOptionUpdates.Add(this); }
public VirtualPerformanceMeasureValueSubcategoryOption(PerformanceMeasureSubcategory performanceMeasureSubcategory) { PerformanceMeasureSubcategoryOptionID = ModelObjectHelpers.NotYetAssignedID; PerformanceMeasureSubcategory = performanceMeasureSubcategory; PerformanceMeasure = PerformanceMeasureSubcategory.PerformanceMeasure; }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static PerformanceMeasureSubcategoryOption CreateNewBlank(PerformanceMeasureSubcategory performanceMeasureSubcategory) { return(new PerformanceMeasureSubcategoryOption(performanceMeasureSubcategory, default(string), default(bool))); }
/// <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)); }
public PerformanceMeasureReportingPeriodSubcategoryOptionReportedValue(PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod, double reportedValue, PerformanceMeasureSubcategory performanceMeasureSubcategory, string performanceMeasureSubcategoryOptionName) : this(performanceMeasureReportingPeriod, reportedValue, ModelObjectHelpers.NotYetAssignedID, ModelObjectHelpers.NotYetAssignedID, performanceMeasureSubcategory, performanceMeasureSubcategoryOptionName, performanceMeasureSubcategoryOptionName) { }