public override void Validate(IMapping mapping) { base.Validate(mapping); if (Key != null && !Key.IsValid(mapping)) { throw new MappingException(string.Format("subclass key has wrong number of columns: {0} type: {1}", MappedClass.Name, Key.Type.Name)); } }