Entity Framework 6 + SQLite

前端 未结 5 1836
醉话见心
醉话见心 2020-12-10 04:07

I\'m trying to use EF6 alpha and SQLite 1.0.66.0

My .config file:


   

        
5条回答
  •  北海茫月
    2020-12-10 05:02

    The System.Data.SQLite Entity Framework provider will need to be updated to work with version 6 of the Entity Framework. (See Rebuilding EF providers for EF6)

    For SQLite, this is a fairly trivial task:

    1. Download and open the System.Data.SQLite.Linq project
    2. Remove the reference to System.Data.Entity.dll
    3. Add a reference to EntityFramework.dll version 6
    4. Update the broken namespace references
    5. Rebuild the provider

    Jun 21, 2013 Update: I've shared an updated version of the provider on my blog. See System.Data.SQLite on Entity Framework 6 for more information.

提交回复
热议问题