Hi Charles,

Thanks for reading and taking the time to write a response! Much appreciated :)

The database has no business generating entity IDs — it must be the responsibility of the application.

The primary key’s datatype was of no concern to this article. I simply just stated how I do it, and that you should always choose whatever makes sense to your application.

I’ll remember your advice about also stating possible consequences and other things to be aware of :)

Written by

Tech writer with 621K+ views. Sharing my opinion and what I learn. Danish C# backend engineer in FinTech. Ex Big4 senior tech consultant.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store