/// <summary>
 /// Constructor for building a new simple object with the POCO class
 /// </summary>
 public PerformanceMeasureActualSubcategoryOptionSimple(PerformanceMeasureActualSubcategoryOption performanceMeasureActualSubcategoryOption) : this()
 {
     PerformanceMeasureActualSubcategoryOptionID = performanceMeasureActualSubcategoryOption.PerformanceMeasureActualSubcategoryOptionID;
     PerformanceMeasureActualID = performanceMeasureActualSubcategoryOption.PerformanceMeasureActualID;
     // It shouldn't ever happen that PerformanceMeasureSubcategoryOptionID is null in the database, but if it is it will come back as a -1 which will break validation on the front-end.
     PerformanceMeasureSubcategoryOptionID = ModelObjectHelpers.IsRealPrimaryKeyValue(performanceMeasureActualSubcategoryOption.PerformanceMeasureSubcategoryOptionID) ? (int?)performanceMeasureActualSubcategoryOption.PerformanceMeasureSubcategoryOptionID : null;
     PerformanceMeasureID            = performanceMeasureActualSubcategoryOption.PerformanceMeasureID;
     PerformanceMeasureSubcategoryID = performanceMeasureActualSubcategoryOption.PerformanceMeasureSubcategoryID;
 }
Exemple #2
0
 public static void DeletePerformanceMeasureActualSubcategoryOption(this IQueryable <PerformanceMeasureActualSubcategoryOption> performanceMeasureActualSubcategoryOptions, PerformanceMeasureActualSubcategoryOption performanceMeasureActualSubcategoryOptionToDelete)
 {
     DeletePerformanceMeasureActualSubcategoryOption(performanceMeasureActualSubcategoryOptions, new List <PerformanceMeasureActualSubcategoryOption> {
         performanceMeasureActualSubcategoryOptionToDelete
     });
 }