Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 实体框架6的实体框架存储过程问题_Sql_.net_Sql Server_Entity Framework - Fatal编程技术网

Sql 实体框架6的实体框架存储过程问题

Sql 实体框架6的实体框架存储过程问题,sql,.net,sql-server,entity-framework,Sql,.net,Sql Server,Entity Framework,我刚刚将现有代码从EntityFramework5更新到了EntityFramework 6,我发现了以下错误 {System.Data.Entity.Infrastructure.CommitFailedException:发生错误 在提交数据库事务时报告,但无法 已确定数据库上的事务是成功还是失败 请参阅内部异常和 了解更多信息。 --->System.Data.SqlClient.SqlException:无法执行事务操作,因为有挂起的请求正在处理此事务 交易 我的代码在EntityFra

我刚刚将现有代码从EntityFramework5更新到了EntityFramework 6,我发现了以下错误

{System.Data.Entity.Infrastructure.CommitFailedException:发生错误 在提交数据库事务时报告,但无法 已确定数据库上的事务是成功还是失败 请参阅内部异常和 了解更多信息。 --->System.Data.SqlClient.SqlException:无法执行事务操作,因为有挂起的请求正在处理此事务 交易

我的代码在EntityFramework5中运行良好,但在EntityFramework6中运行不好

((IObjectContextAdapter)SoInDBContext.Instance).ObjectContext.ExecuteFunction(“SomeFunction”, idParameter、fbIdParameter、emailParameter)


我没有在SP中使用任何事务。

您是否查看了是…我检查了此链接…我没有使用全局上下文。相同的代码在entity framework 5中运行良好。您是否正在执行任何类型的多线程处理?否。我只需在DB中插入