/// <summary> /// Gets the validation attributes of a field in an entity. /// </summary> /// <param name="involvedEntity">The involved entity.</param> /// <param name="fieldName">Name of the field.</param> /// <returns>The validation attributes.</returns> public static IEnumerable <ValidationAttribute> GetValidationAttributes(IEntityCore involvedEntity, string fieldName) { return(MetaDataHelper.GetValidationAttributes(involvedEntity.GetType(), fieldName)); }