/// <summary>
 ///
 /// </summary>
 /// <param name="mapping"></param>
 public override void Validate(IMapping mapping)
 {
     base.Validate(mapping);
     if (!Index.IsValid(mapping))
     {
         throw new MappingException(string.Format("collection index mapping has wrong number of columns: {0} type: {1}", Role, Index.Type.Name));
     }
 }
Example #2
0
 public override void Validate(IMapping mapping)
 {
     base.Validate(mapping);
     if (!Index.IsValid(mapping))
     {
         throw new MappingException(
                   string.Format("collection index mapping has wrong number of columns: {0} type: {1}", Role, Index.Type.Name));
     }
     if (indexNodeName != null && !indexNodeName.StartsWith("@"))
     {
         throw new MappingException("index node must be an attribute: " + indexNodeName);
     }
 }