mongodb-csharp


MongoDBb C# driver equivalent to getFieldDotted in MongoDb C++ driver?


I have used the MongoDB driver more or less in C++ only. But now I need it also in C#.
For one of my functionalities I use the function "getFieldDotted" of class BSONObj to get a BSONElement is a deeper tree of the BSONObj.
It seems that an equiqalent functionality does not exits in C# driver!? All tries to use an "dotted" element name result in an exception "KeyNotFoundException" even if the key exist.
Any ideas?
From what I found out, there is no equivalent to the C++ driver "getFieldDotted" function.
The C# driver is able to use "array indices":
value=BsonDoc["Element"]["AnOtherElement"];
I used this. It is the best for my requirements accessing specific elements that are at fixed positions in the BSON object without looping or searching.

Related Links

Serialize Dictionary<long, VALUE> to BSON documents
Using a Regex against a simple list with `ElemMatch` in MongoDB .NET
projection wont work in mongodb c# driver
BsonClassMapSerializer already registered for AbstractClassSerializer
MongoDb C# Driver 2.0 Coalesce (or equivalent)?
MongoDB dynamic update of collection when changes occurs in another collection
MongoDB C# 2.0 TimeoutException
MongoDB C# 2.0 upgrade
Searching a MongoDB collection from the end (c#)
Handle extra elements outside of deserialized class
ASP.NET 5 with MongoDB
Store same fields twice during serialization
BsonDefaultValue set to empty list
Don't overwrite extra fields when serializing BSON?
MongoDB C# - how to save arbitrary JSON document as dynamic type?
mondodb linq query fails - is it mongodb driver or linq

Categories

HOME
url-redirection
porting
gridview
facebook-oauth
codenvy
apache-jena
ecmascript-6
swt
mstest
javacc
3d-reconstruction
polling
python-multithreading
vert.x
barcode
rcloud
google-schemas
commonjs
qsqlquery
do-while
standards
feathersjs
easyphp
forgot-password
dynamically-generated
xcode-ui-testing
jquery-multiselect
underscore.js
soot
spotipy
cppreference
gp
dsx-desktop
contacts
vue-chartjs
reactjs.net
yowsup
imx6
navigator
sim-toolkit
apic
google-earth-engine
reactivekit
demo
outputcache
android-exoplayer
vaadin-elements
ovf
robomongo
spring-integration-sftp
facebook-pixel
boxing
subnet
filehandle
sundials
arules
seq
restore
adafruit
neon
xdoclet
cycle2
qbxml
jdi
slash
amiga
snoop
nsurlsessiondatatask
uvc
dot.js
exceldatareader
uncaught-typeerror
pseudo-class
cbind
create.js
xml-dsig
ios8-extension
android-framework
conditionaltagsupport
notorm
windows-phone-8-sdk
unit-of-work
scmmanager
pclzip
server-administration
cardreader
mysql-error-2013
web-notifications
idn
xcode3.2
ilasm
stress
cgimage
apache-commons-dbutils
box2d-iphone
winmain
mtu
uideviceorientation
zen
nstokenfield
wcf-instancing
complex-event-processing
information-management
contentpresenter
netbeans6.1

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App