Example #1
0
 /// <summary>
 /// Creates a new validation message class.
 /// </summary>
 /// <param name="entity">Reference to the entity that is sending the validation message</param>
 /// <param name="severity">Severity of the message</param>
 /// <param name="message">Free-text description of the message</param>
 public ValidationMessage(Entity entity, ValidationMessageSeverity severity, string message)
 {
     this.entity   = entity;
     this.severity = severity;
     this.message  = message;
 }
Example #2
0
 /// <summary>
 /// Creates a new validation message class.
 /// </summary>
 /// <param name="entity">Reference to the entity that is sending the validation message</param>
 /// <param name="severity">Severity of the message</param>
 /// <param name="message">Free-text description of the message</param>
 public ValidationMessage(Entity entity, ValidationMessageSeverity severity, string message)
 {
     this.entity = entity;
     this.severity = severity;
     this.message = message;
 }