Beispiel #1
0
 /// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(EvaluationStatus other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.EvaluationStatusID == EvaluationStatusID);
 }
Beispiel #2
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public Evaluation(EvaluationVisibility evaluationVisibility, EvaluationStatus evaluationStatus, Person createPerson, string evaluationName, string evaluationDefinition, DateTime createDate) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.EvaluationID           = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.EvaluationVisibilityID = evaluationVisibility.EvaluationVisibilityID;
     this.EvaluationStatusID     = evaluationStatus.EvaluationStatusID;
     this.CreatePersonID         = createPerson.PersonID;
     this.CreatePerson           = createPerson;
     createPerson.EvaluationsWhereYouAreTheCreatePerson.Add(this);
     this.EvaluationName       = evaluationName;
     this.EvaluationDefinition = evaluationDefinition;
     this.CreateDate           = createDate;
 }
Beispiel #3
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static Evaluation CreateNewBlank(EvaluationVisibility evaluationVisibility, EvaluationStatus evaluationStatus, Person createPerson)
 {
     return(new Evaluation(evaluationVisibility, evaluationStatus, createPerson, default(string), default(string), default(DateTime)));
 }