using primary key in asp.net mvc urls -


i keep hearing shouldn't using primary keys in asp.net mvc url

for example: /users/edit/1243

what issue here?

what alternative, putting in user names? want unique, seems primary key cleanest option

thoughts?

i don't see problem putting primary key on url (neither creators of stack overflow , countless other sites either matter). 1 thing done supply primary key , supply seo , user friendly "slug" human-readable title of data identifier links to.

if intend identify resource (in case, user account) have supply unique identifier on url. if decide not use primary key must still choose identifier cannot change.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -