Property | Type | Description | |
---|---|---|---|
PostHooks | IList |
||
PreHooks | IList |
Method | Description | |
---|---|---|
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 |
public HookedDbContext ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public HookedDbContext ( IHook hooks ) : System.Collections.Generic | ||
hooks | IHook | |
return | System.Collections.Generic |
public HookedDbContext ( IHook hooks, string nameOrConnectionString ) : System.Collections.Generic | ||
hooks | IHook | |
nameOrConnectionString | string | |
return | System.Collections.Generic |
public HookedDbContext ( string nameOrConnectionString ) : System.Collections.Generic | ||
nameOrConnectionString | string | |
return | System.Collections.Generic |
public RegisterHook ( IPostActionHook hook ) : void | ||
hook | IPostActionHook | The hook to register. |
return | void |
public RegisterHook ( IPreActionHook hook ) : void | ||
hook | IPreActionHook | The hook to register. |
return | void |