Browsed by
Month: December 2018

Customizing the ASP.NET Core Identity Table Names and Primary Key Type

Customizing the ASP.NET Core Identity Table Names and Primary Key Type

ASP.NET Core Identity is a very useful tool which provides a simple interface for user management. The default out-of-the-box implementation involves using Microsoft’s default table names and using a string (which defaults to a guid) for primary keys. If you don’t like these defaults it’s fairly simple to change the table names and schema and to use an auto-incrementing integer as a primary key.