/// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(ProjectLocationSimpleType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.ProjectLocationSimpleTypeID == ProjectLocationSimpleTypeID);
 }
Пример #2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static Project CreateNewBlank(TaxonomyLeaf taxonomyLeaf, ProjectStage projectStage, ProjectLocationSimpleType projectLocationSimpleType, ProjectApprovalStatus projectApprovalStatus, ProjectCategory projectCategory)
 {
     return(new Project(taxonomyLeaf, projectStage, default(string), default(string), default(bool), projectLocationSimpleType, projectApprovalStatus, default(DateTime), projectCategory, default(bool)));
 }
Пример #3
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public Project(TaxonomyLeaf taxonomyLeaf, ProjectStage projectStage, string projectName, string projectDescription, bool isFeatured, ProjectLocationSimpleType projectLocationSimpleType, ProjectApprovalStatus projectApprovalStatus, DateTime lastUpdatedDate, ProjectCategory projectCategory, bool locationIsPrivate) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectID      = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.TaxonomyLeafID = taxonomyLeaf.TaxonomyLeafID;
     this.TaxonomyLeaf   = taxonomyLeaf;
     taxonomyLeaf.Projects.Add(this);
     this.ProjectStageID              = projectStage.ProjectStageID;
     this.ProjectName                 = projectName;
     this.ProjectDescription          = projectDescription;
     this.IsFeatured                  = isFeatured;
     this.ProjectLocationSimpleTypeID = projectLocationSimpleType.ProjectLocationSimpleTypeID;
     this.ProjectApprovalStatusID     = projectApprovalStatus.ProjectApprovalStatusID;
     this.LastUpdatedDate             = lastUpdatedDate;
     this.ProjectCategoryID           = projectCategory.ProjectCategoryID;
     this.LocationIsPrivate           = locationIsPrivate;
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectUpdate CreateNewBlank(ProjectUpdateBatch projectUpdateBatch, ProjectStage projectStage, ProjectLocationSimpleType projectLocationSimpleType)
 {
     return(new ProjectUpdate(projectUpdateBatch, projectStage, default(string), projectLocationSimpleType, default(bool)));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectUpdate(ProjectUpdateBatch projectUpdateBatch, ProjectStage projectStage, string projectDescription, ProjectLocationSimpleType projectLocationSimpleType, bool locationIsPrivate) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectUpdateID             = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectUpdateBatchID        = projectUpdateBatch.ProjectUpdateBatchID;
     this.ProjectUpdateBatch          = projectUpdateBatch;
     this.ProjectStageID              = projectStage.ProjectStageID;
     this.ProjectDescription          = projectDescription;
     this.ProjectLocationSimpleTypeID = projectLocationSimpleType.ProjectLocationSimpleTypeID;
     this.LocationIsPrivate           = locationIsPrivate;
 }