Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RevEng: Generate Validation attribute always #9580

Open
Tracked by #22948
smitpatel opened this issue Aug 25, 2017 · 0 comments
Open
Tracked by #22948

RevEng: Generate Validation attribute always #9580

smitpatel opened this issue Aug 25, 2017 · 0 comments

Comments

@smitpatel
Copy link
Member

We scaffold Required whenever needed.
For StringLength/MaxLength we scaffold it unless the type is specified explicitly using HasColumnType (which is needed if type is char(10) or similar). We may generate the length facet even if that would be redundant so that framework allowing validations can take advantage of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants