DbContextInfo.OnModelCreating Property

 

Gets or sets an action to be run on the DbModelBuilder after OnModelCreating has been run on the context.

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

public virtual Action<DbModelBuilder> OnModelCreating { get; set; }

Property Value

Type: System.Action<DbModelBuilder>

An action to be run on the DbModelBuilder after OnModelCreating has been run on the context.