Драйвер Mongo C# обновляет определенный элемент во вложенном массиве ⇐ C#
-
Anonymous
Драйвер Mongo C# обновляет определенный элемент во вложенном массиве
How do I modify in Mongo (C# driver) a single element in a nested property (array) without retrieving the whole document?
public class Element { public int Value {get; set;} public string Name {get; set;} } public class Document { public Element [] Elements {get; set;} } In example I want to find the element with name "Car" and sets its value to 4 in a single query.
Источник: https://stackoverflow.com/questions/525 ... sted-array
How do I modify in Mongo (C# driver) a single element in a nested property (array) without retrieving the whole document?
public class Element { public int Value {get; set;} public string Name {get; set;} } public class Document { public Element [] Elements {get; set;} } In example I want to find the element with name "Car" and sets its value to 4 in a single query.
Источник: https://stackoverflow.com/questions/525 ... sted-array
Мобильная версия