C# 클래스 EFHooks.HookedDbContext

An Entity Framework DbContext that can be hooked into by registering EFHooks.IHook objects.
상속: System.Data.DbContext
파일 보기 프로젝트 열기: kmckelvin/EFHooks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
PostHooks IList
PreHooks IList

공개 메소드들

메소드 설명
HookedDbContext ( ) : System.Collections.Generic
HookedDbContext ( IHook hooks ) : System.Collections.Generic
HookedDbContext ( IHook hooks, string nameOrConnectionString ) : System.Collections.Generic
HookedDbContext ( string nameOrConnectionString ) : System.Collections.Generic
RegisterHook ( IPostActionHook hook ) : void

Registers a hook to run after a database action occurs.

RegisterHook ( IPreActionHook hook ) : void

Registers a hook to run before a database action occurs.

SaveChanges ( ) : int

메소드 상세

HookedDbContext() 공개 메소드

public HookedDbContext ( ) : System.Collections.Generic
리턴 System.Collections.Generic

HookedDbContext() 공개 메소드

public HookedDbContext ( IHook hooks ) : System.Collections.Generic
hooks IHook
리턴 System.Collections.Generic

HookedDbContext() 공개 메소드

public HookedDbContext ( IHook hooks, string nameOrConnectionString ) : System.Collections.Generic
hooks IHook
nameOrConnectionString string
리턴 System.Collections.Generic

HookedDbContext() 공개 메소드

public HookedDbContext ( string nameOrConnectionString ) : System.Collections.Generic
nameOrConnectionString string
리턴 System.Collections.Generic

RegisterHook() 공개 메소드

Registers a hook to run after a database action occurs.
public RegisterHook ( IPostActionHook hook ) : void
hook IPostActionHook The hook to register.
리턴 void

RegisterHook() 공개 메소드

Registers a hook to run before a database action occurs.
public RegisterHook ( IPreActionHook hook ) : void
hook IPreActionHook The hook to register.
리턴 void

SaveChanges() 공개 메소드

public SaveChanges ( ) : int
리턴 int

프로퍼티 상세

PostHooks 보호되어 있는 프로퍼티

protected IList PostHooks
리턴 IList

PreHooks 보호되어 있는 프로퍼티

protected IList PreHooks
리턴 IList