在我的linq 2 sql中,我有一个带有多个结果集和代码的SP
[Function(Name = "GetHomedashboard")]
[ResultType(typeof(TopSearch))]
[ResultType(typeof(TopVacancy))]
public IMultipleResults Usp_CandidateStats_MultipleRs([ParameterAttribute(DbType = "Int")] int? profileId)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), profileId);
return ((IMultipleResults)(result.ReturnValue));
}
检索那些集
在EF中是否存在可用于实现相同功能的等效方法。 我正在寻找相当于EF中的 ExecuteMethodCall 方法
答案 0 :(得分:0)
如果您在Entity Framework中使用CodeFirst,我发现这个NuGet Package (CodeFirstStoredProcs 2.5)对于执行存储过程很有用。我不知道实体框架中是否有API调用可以直接调用来执行。