Skip to content
Advertisement

EF6 Stored Procedure does not accept parameters

I am using EF6 and I need to execute stored procedure. It takes two parameters:

  • mIIN varchar(12), which is input string
  • mXMLOutput varchar(max), which is the result of execution

It works fine when I call it from Management Studio.

However, when I use the following code:

which results in the error

Procedure or function ‘GetInfo’ expects parameter ‘@mIIN’, which was not supplied

EF6 contains the following messages:

What can cause that problem? I am passing this parameter, why doesn’t it accept it?

Advertisement

Answer

This should work:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement