HistoryContext.OnModelCreating(DbModelBuilder) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Applies the default configuration for the migrations history table. If you override this method it is recommended that you call this base implementation before applying your custom configuration.
protected override void OnModelCreating (System.Data.Entity.DbModelBuilder modelBuilder);
override this.OnModelCreating : System.Data.Entity.DbModelBuilder -> unit
Protected Overrides Sub OnModelCreating (modelBuilder As DbModelBuilder)
Parameters
- modelBuilder
- DbModelBuilder
The builder that defines the model for the context being created.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework