Пример #1
0
 /// <summary>
 /// Validate the integrity of this entity.
 /// </summary>
 public virtual void Validate(IEntity validationRoot, ValidationResults results)
 {
     if ((item == null) && (lookup(id) == null))
     {
         results.Error(owner, Strings.ErrFailedToLookupRefWithIdX, id);
     }
 }
Пример #2
0
 /// <summary>
 /// Validate the integrity of this entity.
 /// </summary>
 public virtual void Validate(IEntity validationRoot, ValidationResults results)
 {
     junction.Validate(validationRoot, results);
     if (Junction == null)
     {
         results.Error(this, Strings.ErrNoJunctionSpecified);
     }
 }
Пример #3
0
 /// <summary>
 /// Validate the integrity of this entity.
 /// </summary>
 public virtual void Validate(IEntity validationRoot, ValidationResults results)
 {
     if (string.IsNullOrEmpty(Id))
     {
         results.Error(this, Strings.ErrIdMissing);
     }
     if (string.IsNullOrEmpty(Description))
     {
         results.Warn(this, Strings.WarnDescriptionMissing);
     }
 }
 /// <summary>
 /// Validate the integrity of this entity.
 /// </summary>
 public override void Validate(IEntity validationRoot, ValidationResults results)
 {
     base.Validate(validationRoot, results);
     if (group.Value == null)
     {
         results.Warn(this, "No group specified");
     }
     else if (Group == null)
     {
         results.Error(this, "Loc group with id {0} not found", group.Value.Id);
     }
 }
Пример #5
0
 /// <summary>
 /// Validate the integrity of this entity.
 /// </summary>
 public override void Validate(IEntity validationRoot, ValidationResults results)
 {
     base.Validate(validationRoot, results);
     if (loc.Value == null)
     {
         results.Warn(this, "No loc specified");
     }
     else if (Loc == null)
     {
         results.Error(this, "Loc with id {0} not found", loc.Value.Id);
     }
 }