[EF core] How to register all value converters in project? #899
Unanswered
BlackBearFTW
asked this question in
Q&A
Replies: 2 comments 7 replies
-
|
Hi, you can do this: (taken from https://stevedunn.github.io/Vogen/efcoreintegrationhowto.html) |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Apologies, yes, you still need the marker interface. It's challenging for Vogen to know what value object will be used in EFCore, which is why the marker classes are needed allowing the user to specify them. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using Vogen's value objects in multiple places and I want to support conversion with entity framework core, now the documentation says that you don't need to specify a value convertor for structs, is this correct?
Is there any way to configure all value converters automatically in DbContext ConfigureConventions?
Sorry if this is in the docs, I couldn't find a clear answer. I know you can have a marker class and add all value objects to that with EfConverter, but that still requires you to add all value objects above it.
Beta Was this translation helpful? Give feedback.
All reactions