|
Hi Ali,
This is duplicate of CSHARP-126. Currently, the Bson layer doesn't know anything about databases or collections; it is just a Bson layer which can be used outside of MongoDB. As such, adding something like this in wouldn't be good. We have explored other ways of doing this and this is being kept in mind as something many users have requested as we work on our next major version.
In the meantime, it is relatively trivial to write an extension method to do this. If you need help with an extension method, please pose back.
Thanks for your interest.
|