Good day.

Visual Studio 2012, EF Version = 6.0.0.0

The situation is the following: while in the EF model there were only tables, everything worked fine. Then I added a stored procedure to the model, to make the import function. Then in the model I clicked on the "Run Custim Tool" 2 times:

enter image description here

And errors like:

cannot convert from 'System.Data.Objects.MergeOption' to 'System.Data.Entity.Core.Objects.ObjectParameter'

or

The best overloaded method match for System.Data.Entity.Core.Objects.ObjectContext.ExecuteFunction (string, params System.Data.Entity.Core.Objects.ObjectParameter []) 'has some invalid arguments

As I understand it, the model itself must generate an appeal to the procedures, but here it does it with errors. My procedure returns an "Entity" if this is important.

What am I doing wrong when working with HP?

thank

  • Than to bring a screenshot of the context menu - it would be better if you brought where you got errors. - Pavel Mayorov
  • similar problem link . offer to install EF6 tools for VS2012, or change Namespace to System.Data.Entity.Core.Objects - Ruslan_K
  • I installed the update, restarted the studio, reinstalled the EF (just in case). It will generate errors. You do not know. What else is there to do? So far I had to change the link to System.Data.Entity.Core.Objects - Leonard Bertone

0