MyCollection.Update(Query.EQ("_id", MyObject.Id),
Update.PushWrapped("MyArray", myArrayField)
During an update the field order may be changed. There is no guarantee that the field order will be consistent, or the same, after an update. At the moment, if the update can be applied in place then the order will be the same (with additions applied at the end), but if a move is required for the document (if the currently allocated space is not sufficient for the update) then the fields will be reordered (alphanumerically).
public class MyClass { [BsonElement("sp", Order = 1)] public string SomeProperty { get; set; } }
Ben sürekli serialize/deseriliaze olmasın diye
new BsonDocument deyip kendim map edeyim dedim...
ikisinin arasında bir fark yok diyebilir miyiz? orda da mı obsesif davranıyorum acaba...