Create a database using Entity Framework Core in Blazor
Dec 24, 2023
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
https://www.youtube.com/watch?v=LGjDjz0qUEI
Video #2
https://www.youtube.com/watch?v=b00KRPwCtGQ
Video #3
https://www.youtube.com/watch?v=oGxBa3yI3Hk
Video #4
https://www.youtube.com/watch?v=q7PzjmJuwd8
Video #5
https://www.youtube.com/watch?v=710IJj1NTJo
Show More Show Less #Programming
