Does Microsoft Jet DB work with Entity Framework?

前端 未结 2 1846
迷失自我
迷失自我 2020-12-06 17:33

In this forum here , someone mentions that Entity Framework does not work with Access (Jet DB - .mdb). However it seems that there is a provider for Jet DB as described here

相关标签:
2条回答
  • 2020-12-06 17:46

    Entity Framework does not support OLEDB connections, so your connection string will not work. It is practically impossible to get Entity Framework to collaborate with MS Access. You will either need to dump the MS Access part of your design, or the Entity Framework part.

    The closest you could get using MS Access is using strongly typed datasets and Linq-to-DataSet http://msdn.microsoft.com/en-us/library/bb386977.aspx

    Or, considering going with SQL Express instead (it's free) http://www.microsoft.com/sqlserver/en/us/editions/2012-editions/express.aspx

    0 讨论(0)
  • 2020-12-06 18:05

    There is a MS Access EF 6.1 provider here
    https://jetentityframeworkprovider.codeplex.com/

    EDIT
    Now the EF provider for Access is hosted on GitHub
    https://github.com/bubibubi/JetEntityFrameworkProvider

    0 讨论(0)
提交回复
热议问题