2

I am actually on my first experience with .NET Core and trying to do a simple console application to fetch data from a MS Access database, and dump it into my MySQL database.

Normally I would have used Oledb and fetch all the data into a datatable, then just write it in MySQL. But with .NetCore, we do not have Oledb! Since .NetCore is quite new, I am not able to find some example on the net, how we can do this process.

I have installed the EntityFrameworkCore nuget, but still not able to manipulate it, nor find any documentation of how to fetch the data.

Has anyone been working with .NETCore and has a sample code of how he is fetching the data?

1

1 Answer 1

2

For .NET core and Microsoft Access, your only choice at this moment (afaik) is to use ODBC to fetch data. There's no first party EF core provider for Access databases, and the only third party one that I know of doesn't support .NET core.

Just use System.Data.ODBC.

See MS Docs for how to use it.

Sign up to request clarification or add additional context in comments.

4 Comments

Is ODBC supported from Linux?
Afaik yes, but the Microsoft Access ODBC driver doesn't work under Linux, thus you have to use a third-party ODBC driver. There are many to be found, both open source and commercial.
Is this Afaik a Nuget available in nuget.org? Cannot find it.
I've directed you to the nuget for System.Data.ODBC. ODBC drivers are not nuget packages, they're separate installs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.