Exemplo n.º 1
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectNoFundingSourceIdentified(Project project, CostType costType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectNoFundingSourceIdentifiedID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectID = project.ProjectID;
     this.Project   = project;
     project.ProjectNoFundingSourceIdentifieds.Add(this);
     this.CostTypeID = costType.CostTypeID;
     this.CostType   = costType;
     costType.ProjectNoFundingSourceIdentifieds.Add(this);
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectRelevantCostTypeUpdate(ProjectUpdateBatch projectUpdateBatch, CostType costType, ProjectRelevantCostTypeGroup projectRelevantCostTypeGroup) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectRelevantCostTypeUpdateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectUpdateBatchID            = projectUpdateBatch.ProjectUpdateBatchID;
     this.ProjectUpdateBatch = projectUpdateBatch;
     projectUpdateBatch.ProjectRelevantCostTypeUpdates.Add(this);
     this.CostTypeID = costType.CostTypeID;
     this.CostType   = costType;
     costType.ProjectRelevantCostTypeUpdates.Add(this);
     this.ProjectRelevantCostTypeGroupID = projectRelevantCostTypeGroup.ProjectRelevantCostTypeGroupID;
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectNoFundingSourceIdentifiedUpdate CreateNewBlank(ProjectUpdateBatch projectUpdateBatch, CostType costType)
 {
     return(new ProjectNoFundingSourceIdentifiedUpdate(projectUpdateBatch, costType));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectNoFundingSourceIdentifiedUpdate(ProjectUpdateBatch projectUpdateBatch, CostType costType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectNoFundingSourceIdentifiedUpdateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectUpdateBatchID = projectUpdateBatch.ProjectUpdateBatchID;
     this.ProjectUpdateBatch   = projectUpdateBatch;
     projectUpdateBatch.ProjectNoFundingSourceIdentifiedUpdates.Add(this);
     this.CostTypeID = costType.CostTypeID;
     this.CostType   = costType;
     costType.ProjectNoFundingSourceIdentifiedUpdates.Add(this);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectRelevantCostTypeUpdate CreateNewBlank(ProjectUpdateBatch projectUpdateBatch, CostType costType, ProjectRelevantCostTypeGroup projectRelevantCostTypeGroup)
 {
     return(new ProjectRelevantCostTypeUpdate(projectUpdateBatch, costType, projectRelevantCostTypeGroup));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectNoFundingSourceIdentified CreateNewBlank(Project project, CostType costType)
 {
     return(new ProjectNoFundingSourceIdentified(project, costType));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectRelevantCostType CreateNewBlank(Project project, CostType costType, ProjectRelevantCostTypeGroup projectRelevantCostTypeGroup)
 {
     return(new ProjectRelevantCostType(project, costType, projectRelevantCostTypeGroup));
 }