Skip to content

6. Using EF Core with a connection string

Compare
Choose a tag to compare
@mderriey mderriey released this 20 Feb 03:06
02a373d

We now want to hit our SQL Server instance with EF Core.
The reason is that because EF Core manages the lifetime of the SqlConnection instances, by default we don't have a way to attach the token as we were doing with Dapper.

The first step is to get a basic implementation using EF Core to source the data displayed on the home page of our app.

Diff from previous tag: 5.introduce-token-caching...6.ef-core-basic-implementation