Version 3.4 #78
|
@ -63,6 +63,7 @@ module Connection =
|
||||||
let builder = NpgsqlDataSourceBuilder (cfg.GetConnectionString "mpj")
|
let builder = NpgsqlDataSourceBuilder (cfg.GetConnectionString "mpj")
|
||||||
let _ = builder.UseNodaTime()
|
let _ = builder.UseNodaTime()
|
||||||
Configuration.useDataSource (builder.Build())
|
Configuration.useDataSource (builder.Build())
|
||||||
|
Configuration.useIdField "id"
|
||||||
Configuration.useSerializer
|
Configuration.useSerializer
|
||||||
{ new IDocumentSerializer with
|
{ new IDocumentSerializer with
|
||||||
member _.Serialize<'T>(it : 'T) = JsonSerializer.Serialize(it, Json.options)
|
member _.Serialize<'T>(it : 'T) = JsonSerializer.Serialize(it, Json.options)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user