Getting property attributes in TagHelpers
问题 Some of model properties has "Required" data annotation, that I need to read in a TagHelper class. public partial class Sale { [Required] public string CustomerId { get; set; } ... In the sales view I create a custom select for customer: <customer asp-for="CustomerId " value="@Model.CustomerId"></customer> And in the CustomerTagHelper class there is the process method: public override void Process(TagHelperContext context, TagHelperOutput output) { How can I discover at this point, if the