实体框架存储过程错误

时间:2014-08-11 12:41:31

标签: asp.net-mvc entity-framework stored-procedures

我正在尝试从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(); 
         }
     }
 }

0 个答案:

没有答案