Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Query mongodb collection as dynamic

# You can use the string-based syntax, since the expression doesn't offer any advantages with dynamic anyway:

var cursor = db.GetCollection<dynamic>("foo")
               .Find(Builders<dynamic>.Filter.Eq("_id", someId));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Query #mongodb #collection #dynamic
ADD COMMENT
Topic
Name
8+6 =