Skip to content
| Marketplace
Sign in
Visual Studio>Tools>ASP.NET Identity tools for Entity Framework model
ASP.NET Identity tools for Entity Framework model

ASP.NET Identity tools for Entity Framework model

Xperiandri

|
7,713 installs
| (0) | Free
This package contains a set of tools and templates to simplify usage of Entity Framework model with ASP.NET Identity: Entity Framework designer extension Item template for ASP.NET Identity objects generation SQL Database project template for ASP.NET Identity 2.0 with GUID key ...
Download

Is a Visual Studio extension that allows to use ASP.NET Identity with Entity data model in a simple and automated way.

It helps to quickly implement ASP.NET Identity store based on Entity data model and contains:

  • ASP.NET Identity Database project template with GUID key columns
  • T4 item template to generate classes which implement required ASP.NET Identity interfaces
  • Entity framework designer extension which allows to mark User, Role, Identity and Claim entities so they can be recognized by T4 tamplate

Sources https://github.com/xperiandri/Asp.Net-Identity-Tools-for-Entity-Framework-model

 


How to use

Database first approach:

  1. Create Identity Database project:

    Then run it - this will deploy it to LocalDB.


  2. Create you ASP.NET project. And add Entity data model to it by creating it from deployed in first step database.


  3. Select designer surface and mark all User, Role, Identity and Claim entities within properties:

    Make sure that for all marked entities identity property has StoreGeneratedPattern set to Identity.
    Marked entity must have only one identity property.




  4. Add T4 template to generate classes which implement interfaces required by ASP.NET Identity.

    In order to do this right click on Entity data model designer surface and choose "Add Code Generation Item..." then select "ASP.NET Identity Entity and Store classes" item template:

Enjoy!


Model first approach

Begin from item 2. You only will be required to add User, Role, Identity and Claim entities which satisfy ASP.NET Identity requirements yourself (look into Microsoft.AspNet.Identity.EntityFramework.dll with Object Browser). Then continue the same way.


If you see this extension helpful and it saves your time then some donation is highly appreciated.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft