I\'m using Entity Framework in an ASP.NET MVC3 application and I\'m trying to use the following code:
var token = \"\"; this.Database.ExecuteSqlCommand(\"exe
You need to indicate the direction in the parameter. For example, try something like this:
var p = new SqlParameter("token", token); p.Direction = ParameterDirection.InputOutput; this.Database.ExecuteSqlCommand("exec dbo.MyUsp", p);