DbMigrationsConfiguration.ContextKey Property
[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]
Gets or sets the string used to distinguish migrations belonging to this configuration from migrations belonging to other configurations using the same database. This property enables migrations from multiple different models to be applied to applied to a single database.
Namespace: System.Data.Entity.Migrations
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Property ContextKey As String
Get
Set
'Usage
Dim instance As DbMigrationsConfiguration
Dim value As String
value = instance.ContextKey
instance.ContextKey = value
public string ContextKey { get; set; }
public:
property String^ ContextKey {
String^ get ();
void set (String^ value);
}
member ContextKey : string with get, set
function get ContextKey () : String
function set ContextKey (value : String)
Property Value
Type: System.String