kmckelvin/EFHooks — pull request #2 by visoft (2011-12-27 19:39:11+00:00)
Title: Using the DbContext within a Hook

I found that at times I needed to access the context for additional data within a hook. Instead of instantiating a new context, I've modified the code to pass it through via the metadata.

I have modified the `HookEntityMetadata` to expose the CurrentContext, and I've created the metadata with the context within the `HookedDbContext`.

Finally, I added the FakeItEasy NuGet package for testing the `HookedDbContext` calls.

I'm hoping that this can be added to the official EFHooks NuGet package so I can reference it instead of my own DLL.