Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
0.5
-
None
-
None
Description
Given the following class:
public class Student
{
public ObjectId Id
public ObjectId ParentId { get; set; }
}
Both of these will be considered an Id property and get automatically assigned. I personally believe that the driver needs to choose a convention by default and stick to it. For instance, id properties are always named Id unless overridden by an attribute, or a manual mapping. In addition, there needs to be a way to change the default convention to something like ID or
{ClassName}Id.
IIdSelectionConvention or something.