Method | Description | |
---|---|---|
DatabaseContext ( IConfiguration config ) : System.Data.Entity |
Creates a new instance of DatabaseContext.
|
Method | Description | |
---|---|---|
OnModelCreating ( DbModelBuilder modelBuilder ) : void |
Initialises the Entity Framework model
|
Method | Description | |
---|---|---|
ConfigureConventions ( DbModelBuilder modelBuilder ) : void |
Configures standard conventions for names of the database tables and fields
|
|
ConfigureManyToMany ( DbModelBuilder modelBuilder ) : void |
Configures many to many relationships
|
public DatabaseContext ( IConfiguration config ) : System.Data.Entity | ||
config | IConfiguration | |
return | System.Data.Entity |
protected OnModelCreating ( DbModelBuilder modelBuilder ) : void | ||
modelBuilder | DbModelBuilder | EF model builder |
return | void |