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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework