如何在.net Core 3.0中使用存储过程

时间:2019-01-10 16:04:35

标签: c# .net entity-framework-core

在.net核心中使用存储过程时会感到困惑,因为我在Entity Framework Core中应用了代码优先方法,但我找不到诸如放置过程的选项之类的东西,如果说在mvc 5中有多种输入方式.net核心.edmx数据模型尚未找到。

IList<int> r = new List<int>();            

context.LoadStoredProc("dbo.GetProc")
        .ExecuteStoredProc((handler) =>
        {    
            r = handler.ReadToList<int>().ToList();
        });

0 个答案:

没有答案