Hi, thank you for the response. There really isnt any other code than that. The PK ID column works normal except on that one table, which has a row with an identity of 0.
On that table, getting the entity returns a primary key of 0, and writing to the fields and saving the entity writes to the 0 row of the table. The same code is used on other tables whose identity counter starts at 1 and behaves as expected (same as far as I can see anyhow). Once again, thank you for the quick response.
Bob