-
Type: New Feature
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 0.7
-
Component/s: Feature Request
-
None
-
Environment:N/A
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)); }