Sitelet https://github.com/CirrusRedOrg/EntityFrameworkCore.Jet/issues/27
Skip to content

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

Description

@formalist

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions