MVC Identity 2.2.1 - Primary Key (Guid) as UniqueIdentifier instead of nVarChar(128)
问题 Current project: ASP.NET 4.5.2 MVC 5 Identity 2.2.1 One of the problems I am running into is that I am making use of GUIDs properly throughout the rest of the project, with the DB field types being UniqueIdentifier. Unfortunately, Identity does not play by the same rules, and for some inscrutable reason they created the table fields as a string -- nVarChar(128). I have found a few hits out there that show how to properly modify Identity to use UniqueIdentifier and cast the Guids to the proper