次の方法で共有


DbMigrationsConfiguration.CommandTimeout プロパティ

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

移行内で個々のコマンドに使用されるタイムアウト値を取得または設定します。 null 値は、基になるプロバイダーの既定値が使用されることを示します。

名前空間:  System.Data.Entity.Migrations
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public Property CommandTimeout As Nullable(Of Integer)
    Get 
    Set
'使用
Dim instance As DbMigrationsConfiguration 
Dim value As Nullable(Of Integer)

value = instance.CommandTimeout

instance.CommandTimeout = value
public Nullable<int> CommandTimeout { get; set; }
public:
property Nullable<int> CommandTimeout {
    Nullable<int> get ();
    void set (Nullable<int> value);
}
member CommandTimeout : Nullable<int> with get, set
function get CommandTimeout () : Nullable<int>
function set CommandTimeout (value : Nullable<int>)

プロパティ値

型 : System.Nullable<Int32>

参照

参照

DbMigrationsConfiguration クラス

System.Data.Entity.Migrations 名前空間