Search

NuGet packages

VB - https://nuget.org/packages/CodeFirstMembershipProvider

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

Add and replace everything from Membership.config to your main Web.config.

Project Description

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

Features:

  • Based on default MembershipProvider implementation
  • 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
  • VB.NET and C# versions available

How to use:

  • Create a new MVC Web Application project
  • Download the NuGet package for either VB or C# version of your MVC project
  • 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.
Last edited Jan 13 at 10:01 AM by Se3ker, version 73
Updating...
© 2006-2012 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2012.2.15.18416