OrmLite: Implicit Reference Conventions for string keys
I'm working with an existing legacy database schema. Many tables have string primary keys. These primary keys are typically named Code rather than Id. Id is reserved for int primary keys.
The implicit relationships are currently applied for properties ending in Id. It would be nice if this worked for properties ending in Code too (if marked with PrimaryKey attribute).
E.g.
q.Join<CustomerType>();
q.Join<CustomerType,Customer>((cust,type) => cust.CustomerTypeCode == type.Code);
0
votes
