0

I am trying to use Database first with an Access Database. But there are only SQL Database options. Is it possible to use Database first with an Access Database?

Curious
  • 474
  • 1
  • 8
  • 25

1 Answers1

0

You have to clone this repository to local and compile the solution

Then you will have to register the ADO.Net provider for MS Access in the machine.config, which can be found at:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config

Search for:

<system.data>
    <DbProviderFactories>
    ....
    </DbProviderFactories>
</system.data>

And add the following line:

<add name="JetEntityFrameworkProvider" invariant="JetEntityFrameworkProvider" description="JetEntityFrameworkProvider" type="JetEntityFrameworkProvider.JetProviderFactory, JetEntityFrameworkProvider, Version=6.0.0.0, Culture=neutral, PublicKeyToken=756cf6beb8fe7b41"/>

If you have followed these Steps, you should be able to use Entity Framework with Access and DB-first.

Source: https://github.com/bubibubi/JetEntityFrameworkProvider/blob/master/docs/Enabling_db_first.md

go4X
  • 21
  • 4