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

foreach item in an array find largest record using mongodbcsharp driver
Is there Document Validator available for MongoDB using C# driver?
MongoDB projection on missing field on Document
MongoDB faceted search
Mongodb c# InsertOne() - How to Handle exception
How to force serialization of decimal values inside dictionaries as doubles in mongodb csharp driver?
How do I use in $in operator using the 2.0 version of the C# mongodb driver?
What is the purpose of the MaxConnectionLifeTime setting
MongoDB C# driver throws timeout exception when trying to connect to replica set
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

Categories

HOME
phpword
delphi-7
c99
forms
ecmascript-6
oracle-apex-5
simulink
dojo
vxml
regular-language
code-coverage
odoo-8
mod-security
rtf
jsonpath
tput
comsol
frequency-distribution
google-data-studio
connector
apache2.4
spring-async
dpdk
exit
easeljs
mongoid6
stackexchange
motion-detection
intersystems-cache
angular-translate
datastax-enterprise-graph
paperjs
quantlib
bioinformatics
gp
sqlpackage
scrollview
scatter3d
clickjacking
sammy.js
joomla2.5
mnist
lint
tex
projects-and-solutions
css-position
jvmti
trigonometry
movilizer
subclipse
chronicle-map
avcapturedevice
servermanager
proget
wcftestclient
spring-integration-sftp
rserve
lightning
arq
appdomain
subnet
java-6
renaming
taocp
lrs
signalr.client
cifilter
query-by-example
false-sharing
highland.js
file-move
wiredep
vigenere
include-guards
sony-lifelog-api
lasso
jdk1.7
graphics2d
actionfilterattribute
xmltype
code-documentation
public-html
exceldatareader
dbaccess
device-tree
genymotion-call
linkedin-jsapi
reflector
live555
malformedurlexception
grails-plugin-rabbitmq
android-usb
c++builder-xe5
inputmismatchexception
away3d
hidapi
scringo
stacky
pdfviewer
veracity
failing-tests
ikimagebrowserview
saxparseexception
u2netdk
xcelsius
mysql-error-1205
tournament
pylucene
multiplatform
umra
cac
vs-android
object-database
mathematical-notation
alsb
commercial-application

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App