C# Class EFHooks.HookedDbContext

An Entity Framework DbContext that can be hooked into by registering EFHooks.IHook objects.
Inheritance: System.Data.DbContext
Afficher le fichier Open project: kmckelvin/EFHooks Class Usage Examples

Protected Properties

Свойство Type Description
PostHooks IList
PreHooks IList

Méthodes publiques

Méthode 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

Method Details

HookedDbContext() public méthode

public HookedDbContext ( ) : System.Collections.Generic
Résultat System.Collections.Generic

HookedDbContext() public méthode

public HookedDbContext ( IHook hooks ) : System.Collections.Generic
hooks IHook
Résultat System.Collections.Generic

HookedDbContext() public méthode

public HookedDbContext ( IHook hooks, string nameOrConnectionString ) : System.Collections.Generic
hooks IHook
nameOrConnectionString string
Résultat System.Collections.Generic

HookedDbContext() public méthode

public HookedDbContext ( string nameOrConnectionString ) : System.Collections.Generic
nameOrConnectionString string
Résultat System.Collections.Generic

RegisterHook() public méthode

Registers a hook to run after a database action occurs.
public RegisterHook ( IPostActionHook hook ) : void
hook IPostActionHook The hook to register.
Résultat void

RegisterHook() public méthode

Registers a hook to run before a database action occurs.
public RegisterHook ( IPreActionHook hook ) : void
hook IPreActionHook The hook to register.
Résultat void

SaveChanges() public méthode

public SaveChanges ( ) : int
Résultat int

Property Details

PostHooks protected_oe property

protected IList PostHooks
Résultat IList

PreHooks protected_oe property

protected IList PreHooks
Résultat IList