male110
V2EX  ›  .NET

Ef mysql 多线程

  •  
  •   male110 · Apr 4, 2018 · 4015 views
    This topic created in 3135 days ago, the information mentioned may be changed or developed.

    MySqlException: There is already an open DataReader associated with this Connection which must be closed first.

    Parallel.ForEach 然后报了上面的错误,怎么处理

    3 replies  •  2018-04-05 09:55:08 +08:00
    male110
    male110
    OP
    Apr 4, 2018
    1
    System.Data.Entity.Core.EntityException:“基础提供程序在 EnlistTransaction 上失败。”
    内部异常
    InvalidOperationException: Nested transactions are not supported.
    beginor
    beginor
    Apr 5, 2018 via Android
    3
    一个 connection 通常只能有一个 reader 在用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3723 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 05:23 · PVG 13:23 · LAX 21:23 · JFK 00:23
    ♥ Do have faith in what you're doing.