Programmatically Create MS SQL Server Database for ASP.NET Core WebAPI with Blazor WebAssembly C#

Опубликовано: 19 Октябрь 2020
на канале: Code by PROWARE
5k
63

Download the code:
Create an MS SQL Server database w/Entity Framework and then use it to create, edit, delete and search for records.

Timestamps:
2:13 Add the NuGet Packages (server project)
3:28 Add the NuGet Package (shared project)
4:16 Create the database connection string (server project)
5:00 Adding the Customer class (shared project)
6:09 Adding the application database context (AppDbContext) (server project)
7:18 Modifying Startup.cs with an added Dependency Injection (server project)
8:16 Use Package Manager to create the migration files and then create/update the database (server project)
8:55 Create the CustomersController (the Web API / RESTful API Controller) (server project)
14:07 Create a data repeater component to use to add, edit, delete and display data (client project)
15:16 Create the Customers.razor page (client project)
15:53 Create the search box for the Customers.razor page (client project)
17:45 Run the application

How to modify a table after it has been created:

Ask any questions in the comments section.


Смотрите видео Programmatically Create MS SQL Server Database for ASP.NET Core WebAPI with Blazor WebAssembly C# онлайн без регистрации, длительностью 19 минут 03 секунд в хорошем hd качестве. Это видео добавил пользователь Code by PROWARE 19 Октябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 5 тысяч раз и оно понравилось 6 людям.