Esempio n. 1
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)));
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectCustomAttributeGroupProjectCategory CreateNewBlank(ProjectCustomAttributeGroup projectCustomAttributeGroup, ProjectCategory projectCategory)
 {
     return(new ProjectCustomAttributeGroupProjectCategory(projectCustomAttributeGroup, projectCategory));
 }
Esempio n. 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>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectCustomAttributeGroupProjectCategory(ProjectCustomAttributeGroup projectCustomAttributeGroup, ProjectCategory projectCategory) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectCustomAttributeGroupProjectCategoryID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectCustomAttributeGroupID = projectCustomAttributeGroup.ProjectCustomAttributeGroupID;
     this.ProjectCustomAttributeGroup   = projectCustomAttributeGroup;
     projectCustomAttributeGroup.ProjectCustomAttributeGroupProjectCategories.Add(this);
     this.ProjectCategoryID = projectCategory.ProjectCategoryID;
 }