Which version of EF are you using? 4.0, 4.1, 4.2?

Did you install the latest version via NuGet?

Did you make sure that all the EF references are set to "copy local = true"?

 

4.0 (they're up to 4.2 now?!)

No, I don't know what NuGet has to do with EF4 and SQLite, I thought it was
a plugin updater for Visual Studio.

Yes (I forgot at first)

 

A colleague reckons that I do have to use a factory, but I put the config
section in as recommended on the SQLite ADO provider web page but I get a
null error. I'll have another look at this tonight, I'm stuck on Silverlight
today.

 

Greg

 

<system.data>

  <DbProviderFactories>

    <remove invariant="System.Data.SQLite"/>

    <add name="SQLite Data Provider" invariant="System.Data.SQLite"

         description=".Net Framework Data Provider for SQLite"
         type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />

  </DbProviderFactories>

</system.data>

Reply via email to