This project is read-only.

ASP.NET Identity without Entity Framework, this project is using Microsoft Data Access application blocks.

This is an attempt to remove Entity Framework dependency on ASP.NET Identity implementation.

Creating new MVC project with custom ASP.NET Identity

  1. Right click the AspNet.Identity.NoEF solution and Add, New Project
  2. In the Add New Project Dialog select Visual C# on the left, then Web and then select ASP.NET Web Application. Name your project "AspNet.Identity.NoEF.Test" and then click OK.
  3. In the New ASP.NET Project dialog, select the MVC template with the default options (that includes Individual User Accounts as authentication method) and click OK.
  4. In Solution Explorer, right-click your AspNet.Identity.Test project and select Manage NuGet Packages. In the search text box dialog, type “Identity.EntityFramework”. Select this package in the list of results and click Uninstall. You will be prompted to uninstall the dependency package EntityFramework. Click on Yes as we will no longer this package on this application.
  5. Right click the AspNet.Identity.Test project, select Add, Reference, Solution, Projects; select the AspNet.Identity.NoEF project and click OK
  6. In the AspNet.Identity.Test project, delete the IdentityModels.cs file under Models folder.
  7. In the AspNet.Identity.Test project, replace all references to “using Microsoft.AspNet.Identity.EntityFramework;” with “using AspNet.Identity.NoEF;”
  8. In the AspNet.Identity.Test project, replace all references to “ApplicationUser” with “IdentityUser”;
  9. In the AspNet.Identity.Test project, open AccountController.cs file under the Controllers folder and replace the constructor code:
    public AccountController()
    : this(new UserManager<IdentityUser>(new UserStore()))

Create Tables and Procedures

  1. Execute "AspNet Identity.sql" script in database.
  2. Execute "AspNet Identity Procedures.sql" script in database.

Web.Config Settings

    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<dataConfiguration defaultDatabase="DefaultConnection" />
    <add name="DefaultConnection" connectionString="Server=<Server Name>;Database=<Database Name>;User Id=<User ID>;Password=<Password>;" providerName="System.Data.SqlClient" />


Introduction to ASP.NET Identity

Custom Storage Providers

MySQL Storage Provider

Last edited Apr 21, 2014 at 11:06 AM by nagaraj_codeplex, version 11