-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
I'm not sure if this is already implemented or not. Found some closed issues, but no documentation on it.
I have a column definition that is of type IEnumerable<LanguageId>. LanguageId is basically a value object that has a custom valueconverter/valuecomparer implemented and already registered in EF (and it's working fine when I have a column of type LanguageId).
Now, on the above example, I'm getting the following error: The 'IEnumerable' property 'Installation.Languages' could not be mapped because the database provider does not support this type. Consider converting the property value to a type supported by the database using a value converter.
I understand the error message, but I already implemented a valueconverter that converts the object LanguageId from/to a primitive value (string). What I don't know is how to configure that property, so EF understands that it has to run the converter on every entry, much like when its working on a simple property.
Is there a way to do that? I would like to do so, so I can retain the ability to later query that column. Having to write a custom converter for the IEnumerable<> would not allow me to query the column via "Contains", for example.