在.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();
});