added pluralizationclass from Humanizer, and set collections names to camel case instead of lower case for better readability.
This commit is contained in:
@@ -68,7 +68,7 @@ namespace MongoDbGenericRepository
|
||||
/// <returns></returns>
|
||||
private string Pluralize<TDocument>()
|
||||
{
|
||||
return typeof(TDocument).Name.ToLower() + "s";
|
||||
return (typeof(TDocument).Name.Pluralize()).Camelize();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user