filmov
tv
Create a database using Entity Framework Core in Blazor
Показать описание
In this video, we'll learn how to create a database using Entity Framework Core in a Blazor web application in .NET 8. So we'll create a database for a simple book catalog, named SimpleBookCatalog.
We'll first start with a domain layer, which will hold our Book domain entity. It will simply be an anemic domain model, with no behavior. Then, we'll create an interface in the application layer for interacting with the Book entity. and implement it in the infrastructure layer. We'll add Entity Framework Core to the project, and use the DbContext API. We'll then create a Presentation layer project for our Blazor Web App, and register the required services, and also add a connection string to connect to SQL Server Express LocalDB database. And finally, we'll add a migration and apply that to create the database.
Please note that this video is the first video in a series, where we will be exploring how to perform CRUD operations in Blazor in .NET 8.
Video #1
Video #2
Video #3
Video #4
Video #5
Video #6
Hope you find the video useful. Consider subscribing for more content. Thanks for watching!
#efcore
#blazor
#dotnet
#codeganesh
We'll first start with a domain layer, which will hold our Book domain entity. It will simply be an anemic domain model, with no behavior. Then, we'll create an interface in the application layer for interacting with the Book entity. and implement it in the infrastructure layer. We'll add Entity Framework Core to the project, and use the DbContext API. We'll then create a Presentation layer project for our Blazor Web App, and register the required services, and also add a connection string to connect to SQL Server Express LocalDB database. And finally, we'll add a migration and apply that to create the database.
Please note that this video is the first video in a series, where we will be exploring how to perform CRUD operations in Blazor in .NET 8.
Video #1
Video #2
Video #3
Video #4
Video #5
Video #6
Hope you find the video useful. Consider subscribing for more content. Thanks for watching!
#efcore
#blazor
#dotnet
#codeganesh
Комментарии