我正在尝试从Entity Framework读取存储过程,但它告诉我执行函数未知。有关如何修复或调用我的存储过程的任何想法?
class Program
{
static void Main(string[] args)
{
using (Brand_SASEntities1 context = new Brand_SASEntities1())
{
Console.WriteLine("Calling the SP to read data in")
int records = context.ExecuteFunction("GetOptInData");
Console.WriteLine ("{0} records are found", records);
Console.ReadKey();
Console.ReadKey();
}
}
}