OrientDB-NET.binary icon indicating copy to clipboard operation
OrientDB-NET.binary copied to clipboard

Parameters

Open sowee15 opened this issue 9 years ago • 2 comments

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 avatar Jun 08 '15 20:06 sowee15

@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.

GoorMoon avatar Jun 09 '15 16:06 GoorMoon

please share me the code for oreintdb 2.2.33 database connection through c#.net

user33 avatar Sep 18 '18 03:09 user33