C# .NET: Entity Framework: Call A Stored Procedure

5/1/2013 3:44:40 AM

Call a stored procedure using .NET Entity Framework (5.0).

//doesnt return anything
dbContext.Database.ExecuteSqlCommand("usp_UpdateMyTable @p0", value1);

//doesnt return anything
dbContext.Database.ExecuteSqlCommand("usp_UpdateMyTable @p0, @p1", value1, value2);