providerName的默认超时="System.Data.EntityClient"

bar*_*caf 4 c# entity-framework

我试图计算ObjectContext.CommandTimeout(in System.Data.Entity.dll)属性的默认值是providerName="System.Data.EntityClient"什么?

TNX

Hen*_*rik 5

当设置ObjectContext.CommandTimeoutnull或不设置它,将被使用的基础提供的默认值.

MSDN:ObjectContext.CommandTimeout属性

SQL Server的默认超时为30秒.

MSDN:SqlCommand.CommandTimeout属性