How to use EF Code First Approach and Migrations to create a ASP.NET 6 Web Api, using MS SQL Server.

preview_player
Показать описание
Create data tables in Micorosoft SQL Server using a Code First Approach .
How to create Entity Classes.
How to use Data Annotations.
How to set a column as Primary Key.
How to make a column an identity column
How to make a column required
How to tell sql server the size of a column.
How to step-up a column to have a foreign key.

How to build a connection string to sql server.
#softwareNuggets, #codeFirst, #webAPI, #dotNet6
Рекомендации по теме
Комментарии
Автор

This is an excellent tutorial. It deserves more views and thumbs ups.

nwoivny
Автор

Can you show the DB First Approach using Scaffolding also ? Most shops already have a database in place in the real world. I would like to see how both approaches can be used.

nelsonrivers