C#C
C#4y ago
Dreams

Why does this code have a Required attribute?

It uses the same System.ComponentModel.DataAnnotations as the Models in the folder above it, but this isn't a Entity Framework Model

https://github.com/PacktPublishing/ASP.NET-Core-6-and-Angular/blob/main/Chapter_13/WorldCities/WorldCitiesAPI/Data/LoginRequest.cs
GitHub
ASP.NET-Core-6-and-Angular, published by Packt. Contribute to PacktPublishing/ASP.NET-Core-6-and-Angular development by creating an account on GitHub.
Was this page helpful?