C# Class TechEdWebApiDemo.DAL.TechEdContext

Entity Framework Code-First DataContext
The base sets the connection string in web.config If no base connection string is specified then DefaultConnection will be used
Inheritance: DbContext
显示文件 Open project: garchibald/TechEdWebApiDemo

Public Methods

Method Description
TechEdContext ( ) : System.Data.Entity

Protected Methods

Method Description
OnModelCreating ( DbModelBuilder modelBuilder ) : void

When creating database remove plural table names

Method Details

OnModelCreating() protected method

When creating database remove plural table names
protected OnModelCreating ( DbModelBuilder modelBuilder ) : void
modelBuilder DbModelBuilder
return void

TechEdContext() public method

public TechEdContext ( ) : System.Data.Entity
return System.Data.Entity