/// <summary> /// Constructor for building a new simple object with the POCO class /// </summary> public PerformanceMeasureExpectedSubcategoryOptionSimple(PerformanceMeasureExpectedSubcategoryOption performanceMeasureExpectedSubcategoryOption) : this() { PerformanceMeasureExpectedSubcategoryOptionID = performanceMeasureExpectedSubcategoryOption.PerformanceMeasureExpectedSubcategoryOptionID; PerformanceMeasureExpectedID = performanceMeasureExpectedSubcategoryOption.PerformanceMeasureExpectedID; PerformanceMeasureSubcategoryOptionID = performanceMeasureExpectedSubcategoryOption.PerformanceMeasureSubcategoryOptionID; PerformanceMeasureID = performanceMeasureExpectedSubcategoryOption.PerformanceMeasureID; PerformanceMeasureSubcategoryID = performanceMeasureExpectedSubcategoryOption.PerformanceMeasureSubcategoryID; }
public static PerformanceMeasureExpectedSubcategoryOption Create(int performanceMeasureExpectedSubcategoryOptionID, PerformanceMeasureExpected performanceMeasureExpected, PerformanceMeasureSubcategory performanceMeasureSubcategory, PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption) { var performanceMeasureExpectedSubcategoryOption = new PerformanceMeasureExpectedSubcategoryOption(performanceMeasureExpected, performanceMeasureSubcategoryOption, performanceMeasureExpected.PerformanceMeasure, performanceMeasureSubcategory); performanceMeasureExpectedSubcategoryOption.PerformanceMeasureExpectedSubcategoryOptionID = performanceMeasureExpectedSubcategoryOptionID; return(performanceMeasureExpectedSubcategoryOption); }