This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void EditNested(string collectionName, string primaryKey, string secondaryKey, string tertiaryKey, | |
ArrayList parameters, PropertyInfo[] fields) | |
{ | |
var collection = Mongo.Connect(out _client, out _database, collectionName); | |
var filter = Builders<BsonDocument>.Filter.Eq(someField, primaryKey); | |
var result = BsonSerializer.Deserialize<SomeType>(collection.Find(filter).First()); | |
int index1 = 0, index2 = 0; | |
for (int i = 0; i < result.EmbeddedArray.Length; i++) | |
{ |