Lesson 16: Adding, Editing, Deleting, and Validating Data in MVC Web APIs

preview_player
Показать описание
*Lesson 16: Adding, Editing, Deleting, and Validating Data in MVC Web APIs*

*Lesson Description*
In this lesson you add POST, PUT, and DELETE routes to your MVC Web APIs to insert, update, and delete data from a SQL Server database table. You also learn to add data annotations to your entity classes to enforce business rules. You then write a generic helper method to perform the validation and return any validation errors from your MVC Web APIs.

*Content*
Lesson Objectives 00:00
DEMO: Add Methods to the Interface and Repository Class 00:21
DEMO: Insert Products into the Product Table 01:47
DEMO: Update Products in the Product Table 05:32
DEMO: Delete Products in the Product Table 09:37
Data Annotations 12:12
DEMO Add Data Annotations to Validate Product Data 12:54
Lesson Summary 15:13

#mvc #webapi #crud #entityframework #ef #sqlserver #database #data #validation #dataannotation #csharp #development #programming #dotnet #dotnetcore #dotnet6 #dotnet7 #dotnet8 #pauldsheriff #pluralsight #youtube

*Paul.About()*
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.

*Paul.Contact()*
YouTube Channel: @pauldsheriff
Рекомендации по теме
join shbcf.ru