如何通过XML输入参数强制Entity Framework与存储过程一起使用?数据通过Sql连接完美地更新,但我只需要使用实体框架
我尝试过 ExecuteFunction 和 ExecuteStoreQuery 都给出了以下不同的错误
两个语句都给出错误
return base.ExecuteFunction<int>("pr_UpdateSupplierSubmittedExportdata_1", tblExportDataParameter, batchIDParameter, userNameParameter);
ex = {"The stored procedure or function 'pr_UpdateSupplierSubmittedExportdata_1' does not have a return type. ExecuteFunction only supports stored procedures and functions that have a return type. "}
return base.ExecuteStoreQuery<int>("Exec pr_UpdateSupplierSubmittedExportdata_1 @tblExportData, @BatchID, @UserName ", tblExportData, batchID, userName);
Must declare the scalar variable "@tblExportData".
var getColumn = (from sp in (objLCSEntities.pr_UpdateSupplierSubmittedExportdata_1(xmlString1, Convert.ToInt32(sExportID), strUserFullName))
select sp).First().ToString();