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 ...
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
Create you ASP.NET project. And add Entity data model to it by creating it from deployed in first step database.
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.
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.