I'm looking for a halfway decent IUserType implementation in support of 
JSON serialized columns. Many of the examples I am finding seem to assume 
that a default JSON representation should be an object i.e. "{}". However, 
I do have a couple of instances in which I actually want an array, i.e. 
"[]". That's number one.

Number two, are there other methods or extensions methods of the Map(...) 
that allow further customization of such an implementation than just a 
default constructor (presumably), i.e.

Map(x => x.Features)
    .CustomType<JsonColumnType<IList<string>>>()
    .Column((nameof(ServerProfile.Features) + "Json").ToCamelCase())
    .Not.Nullable()
    ;

And then, if I would like to do a measure of custom JSON serialization to 
from the source property, then what. Other than of course a nominal default 
implementation.

I might like to do something like this for instance, but I do not see that 
extension:

Map(x => x.Features)
    .CustomType<JsonColumnType<IList<string>>>(() => /* do something to 
initialize and configure */ )
    ;

Thank you, best,

Michael W. Powell

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/nhusers/5c747496-fc89-42f8-b485-faaf4c98be65n%40googlegroups.com.

Reply via email to