Command Timeout with Entity Framework 4.1 Code First

后端 未结 5 1242
攒了一身酷
攒了一身酷 2021-01-01 10:06

How can I set the command timeout of a DbContext?

5条回答
  •  我在风中等你
    2021-01-01 10:34

    A better solution to this for later versions of Entity Framework is to use the DbContext.Database.CommandTimeout property. I think this came in with EF 6.

提交回复
热议问题