F# Code-First Development with Entity Framework 4.1 code example

Demonstrate how to use EF 4.1 Code-first in Fsharp 2.0 to save a record into a SQL CE. I also provide workarounds for several practical issues may block fsharp programmers. Issue#1: EF 4.1 does not support nested type; the model can NOT be used inside a Module or a ScripIssue#

 
 
 
 
 
5 Star
(1)
2,356 times
Add to favorites
8/30/2012
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Error while executing
    1 Posts | Last post August 25, 2014
    • I get the below error when i execute the code.
      
      "No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0'"
      
      
      I have the below code in my config,
      <system.data>
          <DbProviderFactories>
            <remove invariant="System.Data.SqlServerCe.4.0" />
            <add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
          </DbProviderFactories>
        </system.data>
        <connectionStrings>
          <add name="CLCars" connectionString="Data Source=c:\users\449227\documents\visual studio 2012\Projects\DemoProject\DemoProject\App_Data\DemoProject.sdf" providerName="System.Data.SqlServerCe.4.0" />
        </connectionStrings>
      
      Please assist..