EntityFrameworkCore.Jet icon indicating copy to clipboard operation
EntityFrameworkCore.Jet copied to clipboard

Generated ModelContext.cs doesn't compile - need: using EntityFrameworkCore.Jet;

Open formalist opened this issue 6 years ago • 0 comments

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;

formalist avatar Feb 15 '19 21:02 formalist