Bài đăng

10. ADDING VALIDATION (CHƯA DỊCH)

Hình ảnh
In this this section you'll add validation logic to the  Movie  model,  and you'll ensure that the validation rules are enforced any time a user  attempts to create or edit a movie using the application. Keeping Things DRY One of the core design tenets of ASP.NET MVC is   DRY  ("Don't Repeat  Yourself"). ASP.NET MVC encourages you to specify functionality or behavior only  once, and then have it be reflected everywhere in an application. This reduces  the amount of code you need to write and makes the code you do write less error  prone and easier to maintain. The validation support provided by ASP.NET MVC and Entity Framework Code  First is a great example of the DRY principle in action. You can declaratively  specify validation rules in one place (in the model class) and the rules  are enforced everywhere in the application. Let's look at how you can take advantage of this validation support in the...

Bài đăng phổ biến từ blog này

Hướng dẫn cài đặt VRML Pad và Cortona 3D Viewer

[Share] CSDL Quản lý Shop Online

[DevExpress] Giao diện Winform chuyên nghiệp