DEPRECATED!

For new projects use the new Membership providers in ASP.NET MVC 5

 

NuGet packages

C# - https://nuget.org/packages/CodeFirstMembershipProviderSharp

1-Click enabled so no configuration necessary.

Database gets generated in your App_Data folder

Project Description

Custom Membership Provider built with Entity Framework Code-First, for use in ASP.NET MVC.

Features:

  • Hybrid default membership and simple membership provider
  • Code-First approach
  • All membership fields can be renamed/changed/localized
  • Easily extendable (add additional fields)
  • Has a helper WebSecurity wrapper to extend Membership functionality
  • Only C# version available

How to use:

  • Create a new MVC Web Application project
  • Download the NuGet package
  • Run the MVC project and tryout your membership
  • All standard Membership and Role methods work as expected

For consideration:

  • Amend the DataContext initialization strategy to your needs
  • Consider using WebSecurity methods instead of standard Membership methods where possible
  • Extend the WebSecurity module with further functionality.

Screenshot of files that get generated with the package:

(Context, Entities & Membership folders)

 

Last edited Sep 10, 2013 at 8:45 PM by Se3ker, version 89