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 ...
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.