OrleansContrib/Orleans.Providers.MongoDB

Now i have _doc as inner property. i am want to have all internal properties on top level (as columns)

P9avel opened this issue · 2 comments

I am want save all without _doc property. How to do it?

Безымянный

It is not possible or not easily possible:

Somehow you have to create a object and you have the following properties from Orleans:

  • Key
  • Etag
  • Value

First of all the value could be a primitive, like string, but even if it would be a document it would be tricky to convert it to a flat document. Lets say you have the following value

class MyValue
{
   [JsonProperty("_id")]
   public string Id {get; set; }
}

Then your Id would overlap with the mongodb _id which is basically the grain identity and you would have a conflict here. It is not worth to handle these details. For MongoDB it does not really matter and you can get a better Management Tool like Studio3T.

Many thanks for quick answer. I am understood now