C# Class ChiakiYu.EntityFramework.ChiakiYuDbContext

EntityFramework-CodeFirst数据上下文
Inheritance: DbContext, IUnitOfWork, IDependency
Show file Open project: andyshao/ChiakiYu Class Usage Examples

Public Methods

Method Description
ChiakiYuDbContext ( ) : System

构造函数

ChiakiYuDbContext ( string nameOrConnectionString ) : System

使用连接名称或连接字符串

Protected Methods

Method Description
OnModelCreating ( DbModelBuilder modelBuilder ) : void

Private Methods

Method Description
GetConnectionStringName ( ) : string

获取 数据库连接串名称

Method Details

ChiakiYuDbContext() public method

构造函数
public ChiakiYuDbContext ( ) : System
return System

ChiakiYuDbContext() public method

使用连接名称或连接字符串
public ChiakiYuDbContext ( string nameOrConnectionString ) : System
nameOrConnectionString string
return System

OnModelCreating() protected method

protected OnModelCreating ( DbModelBuilder modelBuilder ) : void
modelBuilder DbModelBuilder
return void