Inheritance: IHavePrimaryKey, IHaveATenantID
 public PerformanceMeasureReportingPeriodSubcategoryOptionReportedValue(PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod,
                                                                        PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption, double?reportedValue) :
     this(performanceMeasureReportingPeriod, reportedValue, performanceMeasureSubcategoryOption.SortOrder ?? 0,
          performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionID,
          performanceMeasureSubcategoryOption.PerformanceMeasureSubcategory,
          performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionName,
          performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionName)
 {
 }
 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 GeospatialAreaPerformanceMeasureReportingPeriodTarget CreateNewBlank(GeospatialArea geospatialArea, PerformanceMeasure performanceMeasure, PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod)
 {
     return(new GeospatialAreaPerformanceMeasureReportingPeriodTarget(geospatialArea, performanceMeasure, performanceMeasureReportingPeriod));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public GeospatialAreaPerformanceMeasureReportingPeriodTarget(GeospatialArea geospatialArea, PerformanceMeasure performanceMeasure, PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.GeospatialAreaPerformanceMeasureReportingPeriodTargetID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.GeospatialAreaID = geospatialArea.GeospatialAreaID;
     this.GeospatialArea   = geospatialArea;
     geospatialArea.GeospatialAreaPerformanceMeasureReportingPeriodTargets.Add(this);
     this.PerformanceMeasureID = performanceMeasure.PerformanceMeasureID;
     this.PerformanceMeasure   = performanceMeasure;
     performanceMeasure.GeospatialAreaPerformanceMeasureReportingPeriodTargets.Add(this);
     this.PerformanceMeasureReportingPeriodID = performanceMeasureReportingPeriod.PerformanceMeasureReportingPeriodID;
     this.PerformanceMeasureReportingPeriod   = performanceMeasureReportingPeriod;
     performanceMeasureReportingPeriod.GeospatialAreaPerformanceMeasureReportingPeriodTargets.Add(this);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static PerformanceMeasureActualUpdate CreateNewBlank(ProjectUpdateBatch projectUpdateBatch, PerformanceMeasure performanceMeasure, PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod)
 {
     return(new PerformanceMeasureActualUpdate(projectUpdateBatch, performanceMeasure, performanceMeasureReportingPeriod));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public PerformanceMeasureActualUpdate(ProjectUpdateBatch projectUpdateBatch, PerformanceMeasure performanceMeasure, PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.PerformanceMeasureActualUpdateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectUpdateBatchID             = projectUpdateBatch.ProjectUpdateBatchID;
     this.ProjectUpdateBatch = projectUpdateBatch;
     projectUpdateBatch.PerformanceMeasureActualUpdates.Add(this);
     this.PerformanceMeasureID = performanceMeasure.PerformanceMeasureID;
     this.PerformanceMeasure   = performanceMeasure;
     performanceMeasure.PerformanceMeasureActualUpdates.Add(this);
     this.PerformanceMeasureReportingPeriodID = performanceMeasureReportingPeriod.PerformanceMeasureReportingPeriodID;
     this.PerformanceMeasureReportingPeriod   = performanceMeasureReportingPeriod;
     performanceMeasureReportingPeriod.PerformanceMeasureActualUpdates.Add(this);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static PerformanceMeasureReportingPeriodTarget CreateNewBlank(PerformanceMeasure performanceMeasure, PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod)
 {
     return(new PerformanceMeasureReportingPeriodTarget(performanceMeasure, performanceMeasureReportingPeriod));
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static PerformanceMeasureActual CreateNewBlank(Project project, PerformanceMeasure performanceMeasure, PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod)
 {
     return(new PerformanceMeasureActual(project, performanceMeasure, default(double), performanceMeasureReportingPeriod));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public PerformanceMeasureActual(Project project, PerformanceMeasure performanceMeasure, double actualValue, PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.PerformanceMeasureActualID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectID = project.ProjectID;
     this.Project   = project;
     project.PerformanceMeasureActuals.Add(this);
     this.PerformanceMeasureID = performanceMeasure.PerformanceMeasureID;
     this.PerformanceMeasure   = performanceMeasure;
     performanceMeasure.PerformanceMeasureActuals.Add(this);
     this.ActualValue = actualValue;
     this.PerformanceMeasureReportingPeriodID = performanceMeasureReportingPeriod.PerformanceMeasureReportingPeriodID;
     this.PerformanceMeasureReportingPeriod   = performanceMeasureReportingPeriod;
     performanceMeasureReportingPeriod.PerformanceMeasureActuals.Add(this);
 }
 public PerformanceMeasureReportingPeriodSubcategoryOptionReportedValue(PerformanceMeasureReportingPeriod performanceMeasureReportingPeriod, double reportedValue,
                                                                        PerformanceMeasureSubcategory performanceMeasureSubcategory,
                                                                        string performanceMeasureSubcategoryOptionName) :
     this(performanceMeasureReportingPeriod, reportedValue, ModelObjectHelpers.NotYetAssignedID, ModelObjectHelpers.NotYetAssignedID, performanceMeasureSubcategory, performanceMeasureSubcategoryOptionName, performanceMeasureSubcategoryOptionName)
 {
 }