次の方法で共有


DbMigrationsConfiguration.AutomaticMigrationsEnabled プロパティ

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

データベースを移行する際に自動移行が使用できるかどうかを示す値を取得または設定します。

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

構文

'宣言
Public Property AutomaticMigrationsEnabled As Boolean 
    Get 
    Set
'使用
Dim instance As DbMigrationsConfiguration 
Dim value As Boolean 

value = instance.AutomaticMigrationsEnabled

instance.AutomaticMigrationsEnabled = value
public bool AutomaticMigrationsEnabled { get; set; }
public:
property bool AutomaticMigrationsEnabled {
    bool get ();
    void set (bool value);
}
member AutomaticMigrationsEnabled : bool with get, set
function get AutomaticMigrationsEnabled () : boolean 
function set AutomaticMigrationsEnabled (value : boolean)

プロパティ値

型 : System.Boolean

参照

参照

DbMigrationsConfiguration クラス

System.Data.Entity.Migrations 名前空間