SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[procedure_name] AS select 1 GO
context.MyClassSet.FromSqlRaw("EXEC procedure_name;")
DbSet<MyClass> MyClassSet;
public class MyClass { // public int id { get; set; } }
FromSqlRaw
DbSet
ExecuteSql*
Database
int returnValue = context.Database.ExecuteSqlRaw("EXEC procedure_name;");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)