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
Afficher le fichier Open project: garchibald/TechEdWebApiDemo

Méthodes publiques

Méthode Description
TechEdContext ( ) : System.Data.Entity

Méthodes protégées

Méthode Description
OnModelCreating ( DbModelBuilder modelBuilder ) : void

When creating database remove plural table names

Method Details

OnModelCreating() protected méthode

When creating database remove plural table names
protected OnModelCreating ( DbModelBuilder modelBuilder ) : void
modelBuilder DbModelBuilder
Résultat void

TechEdContext() public méthode

public TechEdContext ( ) : System.Data.Entity
Résultat System.Data.Entity