I have two simple stored procedures in SqlServer:
SetData(@id int, @data varchar(10))
GetData(@id int)
Get
DbContext offers these functions. Use:
IEumerable<...> result = myContext.Database.SqlQuery<...>(...)
to execute retrieval stored procedure and
int result = myContext.Database.ExecuteSqlCommand(...)
to execute data modification stored procedure.