Exemple #1
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public EvaluationCriteriaValue(EvaluationCriteria evaluationCriteria, string evaluationCriteriaValueRating, string evaluationCriteriaValueDescription) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.EvaluationCriteriaValueID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.EvaluationCriteriaID      = evaluationCriteria.EvaluationCriteriaID;
     this.EvaluationCriteria        = evaluationCriteria;
     evaluationCriteria.EvaluationCriteriaValues.Add(this);
     this.EvaluationCriteriaValueRating      = evaluationCriteriaValueRating;
     this.EvaluationCriteriaValueDescription = evaluationCriteriaValueDescription;
 }
Exemple #2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static EvaluationCriteriaValue CreateNewBlank(EvaluationCriteria evaluationCriteria)
 {
     return(new EvaluationCriteriaValue(evaluationCriteria, default(string), default(string)));
 }