/// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(ProjectExemptReportingType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.ProjectExemptReportingTypeID == ProjectExemptReportingTypeID);
 }
Example #2
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectExemptReportingYear(Project project, int calendarYear, ProjectExemptReportingType projectExemptReportingType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectExemptReportingYearID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectID = project.ProjectID;
     this.Project   = project;
     project.ProjectExemptReportingYears.Add(this);
     this.CalendarYear = calendarYear;
     this.ProjectExemptReportingTypeID = projectExemptReportingType.ProjectExemptReportingTypeID;
 }
Example #3
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectExemptReportingYear CreateNewBlank(Project project, ProjectExemptReportingType projectExemptReportingType)
 {
     return(new ProjectExemptReportingYear(project, default(int), projectExemptReportingType));
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectExemptReportingYearUpdate CreateNewBlank(ProjectUpdateBatch projectUpdateBatch, ProjectExemptReportingType projectExemptReportingType)
 {
     return(new ProjectExemptReportingYearUpdate(projectUpdateBatch, default(int), projectExemptReportingType));
 }