ronnieoverby/RavenDB-Linqpad-Driver — Issue #4: How can i define a custom DocumentStore Convention?
Author: PureKrome
Created: 2012-03-08 13:43:40+00:00
State: open

Heya :)

I have the following DocumentStore initialization in my code:

```c#
var documentStore = new DocumentStore
{
ConnectionStringName = connectionStringName,
Conventions =
{
CustomizeJsonSerializer =
serializer =>
serializer.Converters.Add(new IpAddressJsonConverter())
}
};
documentStore .Initialize();
```

I have this because i store Ip addresses in my object and I need to define how those objects get JSON serialized.

Is there any way I can add this setup to the 'Store' helper?