0

Is is possible to xcopy deploy SQL CE 4 in an Entity Framework 4.1 code-first app?

Lieven Keersmaekers
  • 57,207
  • 13
  • 112
  • 146
Sean Kearon
  • 10,987
  • 13
  • 77
  • 93

1 Answers1

0

Just worked out that I needed this section in my config:

<system.data>
  <DbProviderFactories>
   <add 
    name="SQL Server Compact Edition 4.0" 
    invariant="System.Data.SqlServerCe.4.0"
    description=".NET Framework Data Provider for Microsoft SQL Server Compact Edition 4.0" 
    type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
  </DbProviderFactories>
</system.data>

I got that from here:

How to deploy SQL CE 4 CTP to shared hosting?

Community
  • 1
  • 1
Sean Kearon
  • 10,987
  • 13
  • 77
  • 93