bchavez / RethinkDb.Driver

:headphones: A NoSQL C#/.NET RethinkDB database driver with 100% ReQL API coverage.
http://rethinkdb.com/api/java
Other
383 stars 134 forks source link

Insert not working with RunNoReply & Can't use runOpts is always null -- solved #164

Closed devtrix closed 1 year ago

devtrix commented 1 year ago

Hi, RESOLVED I am not sure what all was going on, I cloned the repo, updated to .Net 4.8, updated all the nuget packages, brought the unit tests upto date, and did other things half asleep, it works now. Possibly my lack of sleep was the original culprit, I'll never know. If you want me to create a PR lmk. Thanks anyways.

I am using RethinkDb 2.4.3 for windows, and in my VS I have an insert code like the following

var conn = _connectionFactory.CreateConnection(); R.Db(_dbName).Table(nameof(TVShow)).Insert(show).RunNoReply(conn, new { Durability = Durability.Soft });

I discovered that I couldnt use the connection option Durability in RunWrite or any of the Run variations, it throws the following error RethinkDb.Driver.ReqlServerCompileError: 'Unrecognized global optional argumentSoft.'

The .RunNoReply doesn't throw an error but it doesnt Insert.

I am just trying to use NoReply & Durability.Soft together, I wish this was somewhere in the documentation so I dont have to ask such a silly question. Your prompt response is much appreciated. Please advise.