1

in my linq 2 sql i had a SP with multple resultsets and a code

[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));
}

that retrieves those sets

is there an equivalent method in EF that i can use to do achieve the same functionality. basiclay i'm looking for an equivalent of ExecuteMethodCall Method in EF

4

1 回答 1

0

如果您在实体框架中使用 CodeFirst,我发现这个NuGet 包(CodeFirstStoredProcs 2.5)对于执行存储过程很有用。不知道Entity Framework中有没有API调用可以直接调用执行。

于 2013-05-20T14:46:45.383 回答