OrientDB-NET.binary
OrientDB-NET.binary copied to clipboard
Parameters
Hi,
While I was looking at parameters support in the driver, I was wondering why there was a check for CommandPayloadCommand in OCommandQuery.Set method? I tried to serialize an ODocument with a single field "params" that contained a Dictionary<string, object> and it worked. I am using OrientDB 1.7.8, protocol 21.
I also slighty modified the RecordCSVSerializer.SerializeObjectValue method to make sure some values are treated as a string in the map format. I don't know if it was previously an issue?
I also added a SqlBatch method that works with the parameters (I pass the parameters directly to the method on ODatabase and I added a "FromDictionary" method on the OCommandQuery so that it "Set" itself from all values in the dictionary. However I did not make a variant for numeric parameters. Let me know if you're interested in pulls.
@sowee15 , Thank you for improvement and yes i am interested in PR to. Current goal of the driver is support orientdb 2.x without breaking backward compatibility of 1.7.x I will review PR and merge if this is possible.
please share me the code for oreintdb 2.2.33 database connection through c#.net