-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wondered whether this worked with EF5 too, added strong name keyfile #3
base: master
Are you sure you want to change the base?
Conversation
…w for stubs to be used on things like associations
Upgraded NUnit Added strong name key file
Added property to make distinction between Hooks that need to fire before or after validation
Removed unused references
I cant get migrations working because I no longer have a class inheriting direcly from DbContext |
Sorry, can't help you out there, I don't have experience with migrations yet. |
The first step seems to be to make the HookedDbContext class not be abstract. |
@kgreed - Migrations work fine with my branch of EFHooks. I've published my own package of EFHooks to Nuget if you want to try it out. I didn't want to push my own package, but sadly, @kmckelvin hasn't been keeping up the the project. I needed to use EFHooks in multiple projects, so I ended up creating a separate package. Anyway, It's based on EF5 and supports .NET 4 and 4.5. http://nuget.org/packages/VisoftInc.EFHooks/. You can read a little more about it on my blog. @Atrejoe - Unfortunately I didn't see your pull request before making changes to my fork. I'd be interested to know the the VisoftInc.EFHooks NuGet package works for your projects. I'm actively maintaining VisoftInc.EFHooks, so feel free to make changes in my branch and I'll make sure they get pushed to NuGet. |
Hi Damian, I am afk right now, but might look into the code tomorrow or wednesday. It would be cool if we could keep this alive. @kmckelvin contacted me a few months ago, asking me to take over to which I agreed. Unfortunately I think he's a bit busy. It would be nice if we could merge our changes and keep the NuGet centralized and up to date. ----- Reply message ----- Migrations work fine with my branch of EFHooks. I've published my own package of EFHooks to Nuget if you want to try it out. I didn't want to push my own package, but sadly, @kmckelvin hasn't been keeping up the the project. I needed to use EFHooks in multiple projects, so I ended up creating a separate package. Anyway, It's based on EF5 and supports .NET 4 and 4.5. http://nuget.org/packages/VisoftInc.EFHooks/. You can read a little more about it on my blog. @Atrejoe - Unfortunately I didn't see your pull request before making changes to my fork. I'd be interested to know the the VisoftInc.EFHooks NuGet package works for your projects. I'm actively maintaining VisoftInc.EFHooks, so feel free to make changes in my branch and I'll make sure they get pushed to NuGet. — |
@Atrejoe - I just submitted a pull request with my changes. I'm perfectly fine with keeping one branch/package alive. I just needed to use a more up-to-date version of EFHooks on multiple projects and I didn't want to copy code all over the place. |
Conflicts: .gitignore EFHooks.Tests/App.config EFHooks.Tests/EFHooks.Tests.csproj EFHooks.Tests/HookedDbContextTests.cs EFHooks.Tests/packages.config EFHooks/App.config EFHooks/EFHooks.csproj EFHooks/HookEntityMetadata.cs EFHooks/HookedDbContext.cs EFHooks/packages.config
Added pack batch file
I merge your pull request with my branch. Can you check whether you agree on my merges? I liked you methods of compiling the same source files by referencing them in another project. A simple trick, but I never thought of this. As requested by Kelvin I published the Nuget package here. The unit tests work, however I have yet to the the stuff in my development environment. |
@kmckelvin, by the way, it might be better if we transfer the repository ownership after the three of us agree. |
This reverts commit b470bac.
…implemented in 4.5 through partial class
Fixed unit test error in wrapped connection that was brought to light by new hooking functionality.
…on of an ObjectContext
…king fix to error when mocking hookeddbcontext
(ignored packages marked as published too)
All constructors will actually add hooks
…to make calling `AttachHooks` dependant on wether the particular overload was called or not. (I don't like idle instantiation) Made overload call base instead of another overload to prevent calling `ListenToObjectMaterialized` twice or in incorrect order. Published v2.3.1.0
…d to investigate), Corrected NuGet version to be three digit (irrelevant)
Upgraded EF (to 5)
Upgraded NUnit
Added strong name key file