Perhaps a complete chart or list of all the pros and cons to naming identity columns by either Id
or EntityId
?
I'd prefer an neutral point of view for this since I don't think there is one right answer to this question, and what you choose probably depends on how you're using the data and writing queries.
For example, as a programmer using an ORM software for database access, I prefer using Id
since its easier to use Customer.Id
in my code than Customer.CustomerId
, and the ORM takes care of most query writing for me, however many dbas prefer CustomerId
since then they don't have to use the table alias when writing queries, and there's less chance for an error this way.
A unbiased list of pros/cons of each would be nice to help make an informed decision when deciding on how to name identity fields
Some further reading...