In this course, you'll learn how to use Microsoft's Entity Framework to persist application data to a database. By the end of the course, you'll have learned how to use the Code First workflow, create entity classes, write LINQ queries, perform CRUD operations, and more.
We'll start with an introduction of Entity Framework, including an overview of the Database First and Model First workflows. Then we'll use the Code First workflow to add our first entity class and database context class. We'll also see how to use the context to add an entity to the database and retrieve a list of entities from the database.
Chevron 11 steps2:37
4:19
5 questions
6:19
5:50
6:02
2 objectives
3:03
2 objectives
5:03
10 questions
We'll see how to confirm that SQL Server LocalDB is installed and configured correctly for Entity Framework. We'll also locate and review the database that EF generated for us in the previous section, customize the database name, and configure EF's database initializer.
Chevron 8 steps6:16
5 questions
7:14
7:50
2 objectives
5:08
1 objective
10 questions
We'll extend our model by adding entities and defining relationships between our entities. Then we'll see how to refine our model using data annotation attributes on our entities or by using the fluent API. We'll also see how to use a custom database initializer to seed our database with data.
Chevron 14 steps5:48
8:35
2:59
2 objectives
10:33
2 objectives
10:25
3 objectives
5:58
1 objective
6:33
1 objective
5:55
10 questions
We'll see how to write LINQ to Entities queries including how to filter and sort data. Then we'll see the options that EF gives us for loading related data and how they compare to one another. We'll also see the options that EF provides for retrieving a single entity from the context.
Chevron 10 steps6:10
1 objective
4:22
1 objective
4:57
1 objective
11:05
9:35
1 objective
10 questions
We'll take a look at a console application that was built on top of our comic book model. We'll also learn how to perform CRUD operations with the database context. As we do that, we'll implement various Repository class methods in the console application.
Chevron 9 steps4:07
9:22
1 objective
9:12
1 objective
5:02
1 objective
2:16
10 questions