EntityFrameworkCore.Jet
EntityFrameworkCore.Jet copied to clipboard
Generated ModelContext.cs doesn't compile - need: using EntityFrameworkCore.Jet;
In DB First scenario, the generated ModelContex.cs (from Scaffold-DbContext command) doesn't compile, issuing the following error:
Error CS1061: 'DbContextOptionsBuilder' does not contain a definition for 'UseJet' and no accessible extension method 'UseJet' accepting a first argument of type 'DbContextOptionsBuilder' could be found (are you missing a using directive or an assembly reference?)
Just add/generate:
using EntityFrameworkCore.Jet;