From the course: Building Angular and ASP.NET Web API Apps
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Configure entity framework for database access
From the course: Building Angular and ASP.NET Web API Apps
Configure entity framework for database access
- [Instructor] In this part, we're going to set up the database connection with Entity Framework, and we are going to use Entity Framework to communicate with our SQL database. Now before we get started, it's really important to know that Entity Framework is a Microsoft ORN tool, or object relational mapping tool for .NET, that lets you work with a database using C objects instead of SQL. This way, you can map tables to classes for easier data management. Now I've mentioned in here, the SQL, because that is going to be the database that we're going to work with, but Entity Framework does support different database types. Now to set up Entity Framework, we need to first install some packages. We are going to start with the first one, which is the core Entity Framework package, the Microsoft Entity Framework core that does provide the foundational RM functionality. It allows us to map C# classes or models to database tables, and perform database operations using link queries instead of…
Contents
-
-
-
-
Create an empty Web API Project9m 4s
-
(Locked)
Define application models5m 47s
-
(Locked)
Configure entity framework for database access13m 55s
-
(Locked)
Build the Create API endpoint10m 41s
-
(Locked)
Create the read-all API endpoint3m 4s
-
(Locked)
Create the read by ID API endpoint6m 55s
-
(Locked)
Create the update API endpoint7m 4s
-
(Locked)
Create the delete API endpoint3m 10s
-
(Locked)
Cleanup Code16m 24s
-
-
-
-
-