In-depth understanding of the changes in the extended validation attributes of ASP.NET MVC and ASP.NET Core MVC

225312044-303bfa6e-d26f-49f0-9b20-2655e8

In my 2013 ASP.NET MVC Development Experience Sharing (24): Expanding Partial Category Constructors , it was the first time I introduced how ASP.NET MVC in the .NET Framework era replaced the “Entity Data Model” (Entity Data Model) Model) how to extend the Validation Attributes of the existing Entity Model Class under the condition of using EDMX to automatically generate code. But until the start of ASP.NET Core’s MVC, the practice has changed a bit. In this article, I will record these changes.

continue reading

This article is transferred from https://blog.miniasp.com/post/2023/03/15/ASPNET-Core-MVC-Extend-Entity-Model-Class-in-Partial-Class
This site is only for collection, and the copyright belongs to the original author.