Skip to playerSkip to main content
  • 7 years ago
This part improves on the presentation from the previous part. It uses Data Annotations liberally. The Display attribute used specifies what to display for the name of a field (in this case "Release Date" instead of "ReleaseDate"). The DataType attribute specifies the type of the data (Date), so the time information stored in the field isn't displayed.

Some Useful Links:
Data Type : https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.dataannotations.internal.datatypeattributeadapter

Data Annotations: https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions/mvc-music-store/mvc-music-store-part-6
Comments

Recommended