I tried that. But it seems like that I can not find EnumJsonConverter
in anyway. My code looks like
_documentStore.Conventions.CustomizeJsonSerializer =
jsonSerializer =>
{
jsonSerializer.Converters.Remove(...);
};
But I search thru Newtonsoft.Json and Raven.Json and didn't find a
class named EnumJsonConverter.
> You should register to the Conventions.CustomizeJsonSerializer event, and
> remove the appropriate converter from the serializer.
>
>
>
> On Mon, Sep 26, 2011 at 11:36 AM, imgen <
imge...@gmail.com> wrote:
> > In this link:
> >
http://stackoverflow.com/questions/6776615/store-enum-as-integer-in-r...
> > discuss a solution to let RavenDB to store enum as integers instead of
> > strings.
> > But I see that DocumentStore.Conventions doesn't have a Converters
> > property
> > anymore. How could I achieve this with the newer version of RavenDB.
> > BTW,