When I generate MVC.NET using Visual Studio 2017, it generates a few tables AspNetUsers, AspNetRoles, etc...
If you look at the Ids that have been generated, all are in nvarchar(128) and the value is just GUID.
My immediate reaction is to change it to int, but I thought Microsoft must have a very good reason to use GUID instead of int. But doing google search, I couldn't find the answer.
Now, I understand why it stored all ids as nvarchar(128) which is because not all database has field type GUID. But I couldn't find out the benefit of using GUID and int.
Further search the internet, I found this article: GUIDs as PRIMARY KEYs and/or the clustering key. Now, it sounds like GUID can be a bad choice.
I am on the early stage, so it is still time for me to change from GUID to int. But is there any real drawback (and/or benefit) by using int instead of GUID?
Thanks for any help...