jwaliszko / ExpressiveAnnotations

Annotation-based conditional validation library.
MIT License
351 stars 123 forks source link

How to implement all query in custom view template? #176

Closed winsonet closed 6 years ago

winsonet commented 6 years ago

I want to use the custom template as below:

[RequiredIf("order_cat != 'A'")]
[UIHint("FormDateTime")]
public DateTime? order_start_date { get; set; }

and I know I need to handle the data-val-* in the template, but how can I auto get these data-val-* attributes from Model? I don't want to hard-code in the template, thanks!

winsonet commented 6 years ago

sorry, I have solved my problem, thanks!