/// <summary> /// Gets the validation errors for a specified property or for the entire entity. /// </summary> /// <param name="propertyName"> /// The name of the property to retrieve validation errors for; or <see cref="String.Empty"/>, /// to retrieve entity-level errors. /// </param> /// <returns>The validation errors for the property or entity.</returns> public override IEnumerable GetErrors(string propertyName) { string sharedPropertyName; if (propertyName != null && SharedPropertiesMapping.TryGetKey(propertyName, out sharedPropertyName)) { return(SharedConfiguration.GetErrors(sharedPropertyName)); } return(base.GetErrors(propertyName)); }