jwaliszko / ExpressiveAnnotations

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

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

Closed winsonet closed 7 years ago

winsonet commented 7 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 7 years ago

sorry, I have solved my problem, thanks!