fix DbContext namespace (#3313)
parent
e1c8ca9fe8
commit
64c0686921
|
@ -168,7 +168,7 @@ We'll say more about the `DatabaseGenerated` attribute in a [later tutorial](com
|
|||
|
||||
## Create the Database Context
|
||||
|
||||
The main class that coordinates Entity Framework functionality for a given data model is the database context class. You create this class by deriving from the `System.Data.Entity.DbContext` class. In your code you specify which entities are included in the data model. You can also customize certain Entity Framework behavior. In this project, the class is named `SchoolContext`.
|
||||
The main class that coordinates Entity Framework functionality for a given data model is the database context class. You create this class by deriving from the `Microsoft.EntityFrameworkCore.DbContext` class. In your code you specify which entities are included in the data model. You can also customize certain Entity Framework behavior. In this project, the class is named `SchoolContext`.
|
||||
|
||||
In the project folder, create a folder named *Data*.
|
||||
|
||||
|
|
Loading…
Reference in New Issue