Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HistoryContext::CacheKey Property

Entity Framework 6.0
 

Gets the key used to locate a model that was previously built for this context. This is used to avoid processing OnModelCreating and calculating the model every time a new context instance is created. By default this property returns the default schema. In most cases you will not need to override this property. However, if your implementation of OnModelCreating contains conditional logic that results in a different model being built for the same database provider and default schema you should override this property and calculate an appropriate key.

Namespace:   System.Data.Entity.Migrations.History
Assembly:  EntityFramework (in EntityFramework.dll)

public:
property String^ CacheKey {
	virtual String^ get();
}

Property Value

Type: System::String^
Return to top
Show: