ServiceStack/ServiceStack — pull request #882 by tapmantwo (2014-02-07 14:45:25+00:00)
Title: Update IdUtils to allow the PK attribute to take precendence over the Id...

... name convention.

Hi,

We discovered a few issues whereby if you have a field named **Id** that isn't the primary key, and another field that is marked with the primary key attribute, some of the OrmLite functions such as Save() and SaveAll() fail. (A recent pull request to allow this schema structure in terms of table creation was submitted and accepted earlier this week).

I've added a test for the scenario and it was just a case of doing the attribute check before the conventional check.

Hope this is ok,

Richard