Details
-
New Feature
-
Resolution: Done
-
Minor - P4
-
0.7
-
None
-
N/A
Description
It seems that loading an object by it's ID is a very common task. This leads to a lot of repetitive code. If a MongoCollection provided a FindOneById(ObjectId id) method that duplicate code could be eliminated.
In MongoCollection.cs on MongoCollection<T>
public TDefaultDocument FindOneById (ObjectId id)
{ return FindOne(Query.EQ("_id", id)); }