Details
-
New Feature
-
Resolution: Won't Do
-
Minor - P4
-
None
-
0.7
-
None
-
Win 7, .NET 4, VS 2010
Description
If GetCollection<T> had a method that took no argument it would be easier for people to migrate from Norm to this driver. Simply construct a default collection name based on the type in use:-
e.g. in MongoDatabase.cs
public MongoCollection<TDefaultDocument> GetCollection<TDefaultDocument>()
{ string collectionName = typeof(TDefaultDocument).Name; return GetCollection<TDefaultDocument>(collectionName, safeMode); }This makes quick start / simple / common examples just a bit simpler and less error prone as there's no string value to get right.
Attachments
Issue Links
- is duplicated by
-
CSHARP-833 Naming Collections
-
- Closed
-