Exemple #1
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectEvaluationSelectedValue(ProjectEvaluation projectEvaluation, EvaluationCriteriaValue evaluationCriteriaValue) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectEvaluationSelectedValueID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectEvaluationID = projectEvaluation.ProjectEvaluationID;
     this.ProjectEvaluation   = projectEvaluation;
     projectEvaluation.ProjectEvaluationSelectedValues.Add(this);
     this.EvaluationCriteriaValueID = evaluationCriteriaValue.EvaluationCriteriaValueID;
     this.EvaluationCriteriaValue   = evaluationCriteriaValue;
     evaluationCriteriaValue.ProjectEvaluationSelectedValues.Add(this);
 }
Exemple #2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectEvaluationSelectedValue CreateNewBlank(ProjectEvaluation projectEvaluation, EvaluationCriteriaValue evaluationCriteriaValue)
 {
     return(new ProjectEvaluationSelectedValue(projectEvaluation, evaluationCriteriaValue));
 }