@@ -70,7 +70,7 @@ public class BoltGraphClient : IBoltGraphClient, IRawGraphClient, ITransactional
70
70
/// <param name="username">The username to connect to Neo4j with.</param>
71
71
/// <param name="password">The password to connect to Neo4j with.</param>
72
72
/// <param name="realm">The realm to connect to Neo4j with.</param>
73
- public BoltGraphClient ( Uri uri , IEnumerable < Uri > uris , string username = null , string password = null , string realm = null , EncryptionLevel ? encryptionLevel = null )
73
+ public BoltGraphClient ( Uri uri , IEnumerable < Uri > uris , string username = null , string password = null , string realm = null , EncryptionLevel ? encryptionLevel = null , bool serializeNullValues = false )
74
74
{
75
75
var localUris = uris ? . ToList ( ) ;
76
76
if ( localUris != null && localUris . Any ( ) )
@@ -104,30 +104,31 @@ public BoltGraphClient(Uri uri, IEnumerable<Uri> uris, string username = null, s
104
104
JsonConverters = JsonConverters ,
105
105
Username = username ,
106
106
Password = password ,
107
- Realm = realm
107
+ Realm = realm ,
108
+ SerializeNullValues = serializeNullValues
108
109
} ;
109
110
110
111
transactionManager = new BoltTransactionManager ( this ) ;
111
112
}
112
113
113
- public BoltGraphClient ( Uri uri , string username = null , string password = null , string realm = null , EncryptionLevel ? encryptionLevel = null )
114
- : this ( uri , null , username , password , realm , encryptionLevel )
114
+ public BoltGraphClient ( Uri uri , string username = null , string password = null , string realm = null , EncryptionLevel ? encryptionLevel = null , bool serializeNullValues = false )
115
+ : this ( uri , null , username , password , realm , encryptionLevel , serializeNullValues )
115
116
{ }
116
117
117
- public BoltGraphClient ( IEnumerable < string > uris , string username = null , string password = null , string realm = null , EncryptionLevel ? encryptionLevel = null )
118
- : this ( new Uri ( "neo4j://virtual.neo4j.uri" ) , uris ? . Select ( UriCreator . From ) . ToList ( ) , username , password , realm , encryptionLevel )
118
+ public BoltGraphClient ( IEnumerable < string > uris , string username = null , string password = null , string realm = null , EncryptionLevel ? encryptionLevel = null , bool serializeNullValues = false )
119
+ : this ( new Uri ( "neo4j://virtual.neo4j.uri" ) , uris ? . Select ( UriCreator . From ) . ToList ( ) , username , password , realm , encryptionLevel , serializeNullValues )
119
120
{ }
120
121
121
- public BoltGraphClient ( string uri , IEnumerable < string > uris , string username = null , string password = null , string realm = null , EncryptionLevel ? encryptionLevel = null )
122
- : this ( new Uri ( uri ) , uris ? . Select ( UriCreator . From ) . ToList ( ) , username , password , realm , encryptionLevel )
122
+ public BoltGraphClient ( string uri , IEnumerable < string > uris , string username = null , string password = null , string realm = null , EncryptionLevel ? encryptionLevel = null , bool serializeNullValues = false )
123
+ : this ( new Uri ( uri ) , uris ? . Select ( UriCreator . From ) . ToList ( ) , username , password , realm , encryptionLevel , serializeNullValues )
123
124
{ }
124
125
125
- public BoltGraphClient ( string uri , string username = null , string password = null , string realm = null , EncryptionLevel ? encryptionLevel = null )
126
- : this ( new Uri ( uri ) , username , password , realm , encryptionLevel )
126
+ public BoltGraphClient ( string uri , string username = null , string password = null , string realm = null , EncryptionLevel ? encryptionLevel = null , bool serializeNullValues = false )
127
+ : this ( new Uri ( uri ) , username , password , realm , encryptionLevel , serializeNullValues )
127
128
{ }
128
129
129
130
public BoltGraphClient ( IDriver driver )
130
- : this ( new Uri ( "neo4j://Neo4j-Driver-Does-Not-Supply-This/" ) , null , null , null , null )
131
+ : this ( new Uri ( "neo4j://Neo4j-Driver-Does-Not-Supply-This/" ) , null , null , null , null , false )
131
132
{
132
133
Driver = driver ;
133
134
}
0 commit comments