I have this sample code:
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Models;
namespace MySampleNamespace
{
It's also possible you have version discrepancies in your solution, so for example, if one of the projects in your dependency chain has a 3.1
version of EF Core
and another project has a 2.1
, then you will also see this error, and no matter what you install it won't work, instead make sure they are the same version in the entire solution.