Entity Framework - what is the current command timeout value

前端 未结 5 1879
南方客
南方客 2021-01-17 07:49

I\'m using Entity Framework 5 and I wish to know the command timeout value.

In order to do so, I cast the dbContext object to an ObjectContext

5条回答
  •  半阙折子戏
    2021-01-17 08:21

    If you're using SQLServer then the default command timeout is 30 seconds.

    SqlCommand.CommandTimeout Property

提交回复
热议问题