cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Entity Framework 6.* provider

Former Member
15,845

It has been a long time since Entity Framework 6 has been released. Any ideas on when we will finally get a working EF6 Provider? Having to wait for such a trivial thing like porting a working EF5 provider to EF6.* for over half a year is really disappointing.

View Entire Topic
jeff_albion
Product and Topic Expert
Product and Topic Expert

UPDATE: There was an additional problem with the EF6 design-first wizard found during further testing. This has now been fixed in 12.0.1.4162 and 16.0.0.2014, see CR #770760. Code-first projects should still work with the current support.

Windows x86/x64 Support Packages (12.0.1 SP 80 and above, 16.0 SP 19 and above) have been released with this update.

How to build an Entity Framework 6 Project with SQL Anywhere 12.0.1.4162 and 16.0.0.2014 and above

In order to build an Entity Framework 6 project with SQL Anywhere:

  • Install the Entity Framework 6 Tools for Visual Studio 2012 & 2013
  • Run SetupVSPackage.exe with the newly added “/v 6” option to register the Entity Framework 6 Provider (in machine.config). (Note: This replaces the current 'iAnywhere.Data.SQLAnywhere' invariant to use an EF6-compatible provider)
  • Install Entity Framework NuGet Package for the Visual Studio project. In the package manager console, type:

Install-Package EntityFramework

  • Modify the project app.config file to include the SQL Anywhere Entity Framework 6 provider. Here’s an example:

    <providers> <provider invariantname="iAnywhere.Data.SQLAnywhere" type="iAnywhere.Data.SQLAnywhere.SAProviderServices, iAnywhere.Data.SQLAnywhere.EF6, Version=16.0.0.20144, Culture=neutral, PublicKeyToken=f222fc4333e0d400"/> </providers>

  • Build the Visual Studio project.

  • Run Entity Data Model Wizard (Add -> New Item -> ADO.NET Entity Data Model).
Former Member
0 Likes

For me "/v 6" didn't work. I had to use "/v EF6". I'm using SA 16.0.0.2158.