Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

Error in Collection.ReplaceOne method (1 reply)

$
0
0
I have a DbDoc with the following structure:
{
͏͏ property1: value1,
 property2: value2.
 array3:
  [
   {
    property11: value11,
    property12: value12
   },
   {
    property11: value11,
    propertu12: value12
   }
  ]
}

When I add this DbDoc using Collection.Add(DbDoc) method, it works.
But when I try to update the database document using Collection.ReplaceOne(id,DbDoc) method, I get the following exception:

System.NotSupportedException
HResult=0x80131515
Mensaje = Value of type System.Collections.Generic.Dictionary`2[System.String,System.Object][] is not currently supported.

Can anybody tell me what am I doing wrong?

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>