<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SA 12.0.1, Visual Studio 2013, EF5 Wizard : MappingException Error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaa-p/13815687#M4846530</link>
    <description>&lt;P&gt;As there is no other answer so far, and since there have been some fixes for SA 12.0.1 and VS 2012/2013 lately, I'd suggest to try the newest EBF.&lt;/P&gt;
&lt;P&gt;For a list of potential fixes, cf. that public link:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://sqlasupport.sap.com/readme/sqla1201.html"&gt;SA 12.0.1.4224 EBF Readme&lt;/A&gt;, particularly the section on the ADO.Net Managed Provider.&lt;/P&gt;
&lt;P&gt;Note: I don't know whether that will solve your problem, it's just a recommendation.&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2015 16:11:30 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2015-05-20T16:11:30Z</dc:date>
    <item>
      <title>SA 12.0.1, Visual Studio 2013, EF5 Wizard : MappingException Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaq-p/13815686</link>
      <description>&lt;P&gt;I am using SQL Anywhere 12.0.1 with VS 2013, the SA ADO.Net driver from the SA 12.0.1.4134 client and the Entity Framework 5 Entity Data Model Wizard... 
I am trying to create a DB first model using the wizard. After selecting the connection to the SA database and then selecting EF 5 (Don't have an EF6 compatible driver yet), the wizard briefly displays "Retrieving database information, please wait..." then I get the error message:&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;An error occurred while connecting to the database. The database might be unavailable. An exception of type 'System.Data.Entity.Core.EntityCommandCompilationException' occurred. The error message is: 'An error occurred while preparing the command definition. See the inner exception for details.
The inner exception caught was of type 'System.Data.Entity.Core.MappingException', with this error message: '
StoreSchemaMappingVersion3(3,4) : error 3027: No mapping specified for the following EntitySet/AssociationSet - FunctionReturnTableColumns, FunctionFunctionReturnTableColumns.'.'.&lt;/LI-CODE&gt;


&lt;P&gt;Can anyone help?&lt;/P&gt;
&lt;P&gt;Edit: it's the SA 12.5.0.4134 client driver not 12.0.1&lt;/P&gt;
&lt;P&gt;Edit 2: Nvm, it is the 12.0.1.4134 client driver&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2015 19:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaq-p/13815686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-19T19:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: SA 12.0.1, Visual Studio 2013, EF5 Wizard : MappingException Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaa-p/13815687#M4846530</link>
      <description>&lt;P&gt;As there is no other answer so far, and since there have been some fixes for SA 12.0.1 and VS 2012/2013 lately, I'd suggest to try the newest EBF.&lt;/P&gt;
&lt;P&gt;For a list of potential fixes, cf. that public link:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://sqlasupport.sap.com/readme/sqla1201.html"&gt;SA 12.0.1.4224 EBF Readme&lt;/A&gt;, particularly the section on the ADO.Net Managed Provider.&lt;/P&gt;
&lt;P&gt;Note: I don't know whether that will solve your problem, it's just a recommendation.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 16:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaa-p/13815687#M4846530</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2015-05-20T16:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: SA 12.0.1, Visual Studio 2013, EF5 Wizard : MappingException Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaa-p/13815688#M4846531</link>
      <description>&lt;P&gt;Visual Studio 2013 comes pre-installed with Entity Framework 6 (EF6) so the version of the Entity Data Model (EDM) wizard that you are using will be Entity Framework Tools 6.x (EFTools) and you are targeting Entity Framework 5 (EF5) with your project in the EF6 wizard. I assume you have done the following in NuGet to force the EF5 version installation in Visual Studio 2013:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;Install-Package EntityFramework -Version 5.0.0&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;The EDM resources that EFTools 6.x are referring to above are the EF6 Provider mappings - these do not exist in EF5:&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;&amp;lt; AssociationSet Name="FunctionFunctionReturnTableColumns" Association="Self.FunctionFunctionReturnTableColumn"&amp;gt;
&amp;lt; End Role="Function" EntitySet="SFunctions"/&amp;gt;
&amp;lt; End Role="Column" EntitySet="SFunctionReturnTableColumns"/&amp;gt;
&amp;lt; /AssociationSet&amp;gt;&lt;/LI-CODE&gt;


&lt;P&gt;So the problem here is that EFTools 6.x seems to be checking for EF6 mappings in what is supposedly an EF5 provider even in this compatibility mode. If you were using Visual Studio 2012 with just EF5 installed (i.e. without the EF6 installation from &lt;A href="https://www.microsoft.com/en-us/download/details.aspx?id=40762"&gt;https://www.microsoft.com/en-us/download/details.aspx?id=40762&lt;/A&gt; ), this same operation is okay as it doesn't check for that mapping. So the error is in EFTools. (I can reproduce this same error with EFTools 6.1.3 in Visual Studio 2013 and I have confirmed this operation is okay in VS 2012).&lt;/P&gt;
&lt;P&gt;For your current situation, I would recommend &lt;A href="http://scn.sap.com/docs/DOC-54706"&gt;downloading a later 12.0.1 SQL Anywhere SP&lt;/A&gt; that includes EF6 support and use our EF6 provider, as per: &lt;A href="http://sqlanywhere-forum.sap.com/questions/22161/entity-framework-6-provider"&gt;http://sqlanywhere-forum.sap.com/questions/22161/entity-framework-6-provider&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Once the EF6 provider is installed, you can either use EF5 or EF6 in the EFTools 6.x tooling.&lt;/P&gt;
&lt;P&gt;I have opened CR #784321 to see if we can address this point of using the EF5 compatibility mode in an EF6 tooling situation.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 10:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaa-p/13815688#M4846531</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2015-05-21T10:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: SA 12.0.1, Visual Studio 2013, EF5 Wizard : MappingException Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaa-p/13815689#M4846532</link>
      <description>&lt;P&gt;Thanks for the detailed explaination Jeff. It does seem like the error is in EFTools using EF5 provider but calling EF6 'methods'. (Also, as far as I can tell, the VS2013 default creates projects with EF5 reference. EF6 has to be added/updated with every project)&lt;/P&gt;
&lt;P&gt;Is there a publicly availably link to download something newer than the SA 12.0.1.4134 client? (Which I got from: &lt;A href="http://scn.sap.com/docs/DOC-35857)"&gt;http://scn.sap.com/docs/DOC-35857)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 13:01:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaa-p/13815689#M4846532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-21T13:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: SA 12.0.1, Visual Studio 2013, EF5 Wizard : MappingException Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaa-p/13815690#M4846533</link>
      <description>&lt;P&gt;After much wrestling with : &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Getting our SAP S-user access to download the SQL Anywhere EBF&lt;/LI&gt;
&lt;LI&gt;Actually downloading the EBF file (3 attempts with a regular HTTP download got cut off mid way). The SAP download manager app did not work. &lt;/LI&gt;
&lt;LI&gt;Figuring out how to install the client drivers. They weren't listed in the installer. Turns out they were installed as part of the SQL Anywhere database server option. I didn't need the SA engine on my dev PC but whatever...&lt;/LI&gt;
&lt;LI&gt;Uninstalling the previous SA 12.0.1.4134 client for good measure. &lt;/LI&gt;
&lt;LI&gt;Some app.config - err - configuration...&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I finally got it working!!&lt;/P&gt;
&lt;P&gt;The last piece of the puzzle was the app.config. In the &lt;A href="http://sqlanywhere-forum.sap.com/questions/22161/entity-framework-6-provider"&gt;linked forum posting about setting up EF6&lt;/A&gt;, the SA 16 provider was used as a sample. I simply (Hah! simply...) had to change the version number to match the version number of the &lt;EM&gt;iAnywhere.Data.SQLAnywhere.EF6&lt;/EM&gt; DLL on my machine, which was 12.0.1.42314.&lt;/P&gt;
&lt;P&gt;I seem to have lost the ability to choose between EF6 and EF5 in the entity data model wizard, but that's no problem. I only tried EF5 initially because I didn't have the EF6 driver yet.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2015 16:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sa-12-0-1-visual-studio-2013-ef5-wizard-mappingexception-error/qaa-p/13815690#M4846533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-29T16:42:25Z</dc:date>
    </item>
  </channel>
</rss>

