Lets say that I have one object like:
class First
{
int key;
}
class Second
{
KeyValuePair<int,int> keyName;
}
Is it possible in RavenDb to define primary key using different name than “Id”? Please note that I need to assign different key name for different objects.
Gwynnbleid1,
Yes, you can. You can define this using the Conventiosn.FindIdentityProperty, which you can customize on a per type basis.