Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How the Model Validation works in ASP.NET Core?

Currently I’m learning Razor Pages on the ASP .NET Core Docs, Part 8 of tutorial series on Razor Pages adding Validation to the application. I understand what is validation, on the client-side and the server-side, I know there’s jQuery client-side validation to detects the errors.

My question is how it’s work without applying migrations to the database??

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Model validation has nothing to do with databases. The model is validated based on the attributes applied to the model. The fact that some of those attributes can also be used by the database is irrelevant to the validation.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading