ASP.NET Identity Database

Free

SQL Database project template for ASP.NET Identity 2.0.

(0) Review
Visual Studio
2013, 2012
Download (4,419)
6/10/2014
2.0.0
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews
Q and A (3)
Sign in to write a review

Be the first to write a review.

Sign in to start a discussion


  • using System.Web; (required?)
    1 Posts | Last post July 03, 2014
    • As the example seems to be OWIN/Katana, is the reference to System.Web still required/advisable? (startup.cs)
  • Int vs String for Id
    2 Posts | Last post June 01, 2014
    • It seems like it's requiring the user Id field to be a string in ASP.Net Identity, as well as having a User.Id field (not User.UserId).  I tried implementing the Id field in the UserEntity, but EF throws an error while trying to save with both the UserId field, and Id both being present.  Do you know if an Id of type string is a requirement of 
      Microsoft.AspNet.Identity.Core 2.0.1, and if so, is there a good way to override this without reinventing the wheel?  I much prefer using int as Id both the database, and in C#.  
    • The sample project which you can find here uses User.Id of type int:
      
      https://github.com/KriaSoft/AspNet.Identity
  • A bunch of errors
    2 Posts | Last post May 29, 2014
    • Thanks for this useful example but 3 errors appear:
      --------------------------------------------------------
      Error	3	Error 11008: Association 'FK_UserClaim_User' is not mapped.	C:\...\AspNet.Identity-master\src\KriaSoft.AspNet.Identity.EntityFramework\Model.edmx	191	9	KriaSoft.AspNet.Identity.EntityFramework
      --------------------------------------------------------
      Error	4	Error 11008: Association 'FK_UserLogin_User' is not mapped.	C:\...\AspNet.Identity-master\src\KriaSoft.AspNet.Identity.EntityFramework\Model.edmx	205	9	KriaSoft.AspNet.Identity.EntityFramework
      --------------------------------------------------------
      Error	5	Error 111: Properties referred by the Dependent Role UserClaim must be a subset of the key of the EntityType Application.UserClaim referred to by the Dependent Role in the referential constraint for Relationship Application.FK_UserClaim_User.	C:\...\AspNet.Identity-master\src\KriaSoft.AspNet.Identity.EntityFramework\Model.edmx	196	11	KriaSoft.AspNet.Identity.EntityFramework
      
      What should I do?
      Thanks in advance
    • Try cloning this repo and running the sample project:
      
      https://github.com/KriaSoft/AspNet.Identity