Method | Description | |
---|---|---|
DbContextBase ( string dbName ) : System | ||
DisableFilters ( ) : IDisposable | ||
SaveChanges ( ) : int |
保存更改
|
Method | Description | |
---|---|---|
InterceptAddedOperation ( DbEntityEntry entry ) : void |
拦截添加操作
|
|
InterceptDeletedOperation ( DbEntityEntry entry ) : void |
拦截删除操作
|
|
InterceptModifiedOperation ( DbEntityEntry entry ) : void |
拦截修改操作
|
|
OnModelCreating ( DbModelBuilder modelBuilder ) : void | ||
SaveChangesAfter ( int result ) : int |
保存更改后操作
|
|
SaveChangesBefore ( ) : void |
保存更改前操作
|
Method | Description | |
---|---|---|
EnableFilters ( ) : IDisposable | ||
GetApplicationSession ( ) : IApplicationSession |
获取应用程序上下文
|
|
InitCreationAudited ( DbEntityEntry entry ) : void |
初始化创建审计信息
|
|
InitModificationAudited ( DbEntityEntry entry ) : void |
初始化修改审计信息
|
|
WriteLog ( ) : void |
写日志
|
public DbContextBase ( string dbName ) : System | ||
dbName | string | |
return | System |
protected InterceptAddedOperation ( DbEntityEntry entry ) : void | ||
entry | DbEntityEntry | |
return | void |
protected InterceptDeletedOperation ( DbEntityEntry entry ) : void | ||
entry | DbEntityEntry | |
return | void |
protected InterceptModifiedOperation ( DbEntityEntry entry ) : void | ||
entry | DbEntityEntry | |
return | void |
protected OnModelCreating ( DbModelBuilder modelBuilder ) : void | ||
modelBuilder | DbModelBuilder | |
return | void |
protected SaveChangesAfter ( int result ) : int | ||
result | int | 影响的行数 |
return | int |