Model Validation with Data Annotation in Web API | .NET 8 | Ep 9

preview_player
Показать описание
🎁ALL-ACCESS Subscription: Unlock access to all of my courses, both now and in the future at a low $19.99 / month.

💎Learn .NET MAUI while creating a Contacts App in .NET 7:

🔥Learn Blazor while creating an Inventory Management System in .NET 6

💎 Complete Guide to ASP.NET Core Identity

💎Complete Blazor Course: Build an e-commerce app with ASP.NET Blazor and Clean Architecture

💎 Complete Web API Course:

👍Architecture Course

Рекомендации по теме
Комментарии
Автор

🎁ALL-ACCESS Subscription: Unlock access to all of my courses, both now and in the future at a low $19.99 / month.

💎Learn .NET MAUI while creating a Contacts App in .NET 7:

🔥Learn Blazor while creating an Inventory Management System in .NET 6

💎 Complete Guide to ASP.NET Core Identity

💎Complete Blazor Course: Build an e-commerce app with ASP.NET Blazor and Clean Architecture

💎 Complete Web API Course:

👍Architecture Course

FrankLiuSoftware
Автор

Why do you use [Required] and mark them as nullable too? Like the Gender field

TulioSandoval
Автор

So validation of CreateShirt() means basically if you don't provide those specification we add [Required] attr. It means it woun't be saved in database...? and it spits back somekind of bad request or what ever we decide to use....

Console.WriteLine
Автор

In ep9 if we given all values in postman we are getting error msg brand firld is required etc....

poojithapalagani
Автор

why the "Required" attribute does not work for the price property ?

ahmadaskar
join shbcf.ru