In VS 2013, when you create a File-->New Project-->MVC, the default authentication mechanism is set to Individual User Accounts which in turn creates a project using the new ASP.NET Identity stuff.
This turns out to include a bunch of new libraries such as:
- Microsoft.AspNet.Identity.Core.dll
- Microsoft.AspNet.Identity.EntityFramework.dll
- Many other dlls
In addition, the project template also adds a new IdentityModels.cs
file within the Models folder.
Looking at that file, you’ll notice an ApplicationUser
class that implements IdentityUser
.
There is also an ApplicationDbContext
etc...
Looking inside the AccountController
, you’ll see a UserManager
property.
All of this new stuff is what is related to the new ASP.NET Identity
If you were to create a new project but this time, change the authentication mechanism to No Authentication you’d notice that none of the new ASP.NET Identity stuff is in there.
In VS 2012, when you create a new project and select Internet Application
, by default it will use SimpleMembership
thanks to the WebMatrix.Data and WebMatrix.WebData
dlls (that are not present inside an MVC 5.0 application by the way).
In addition, if you look at the AccountController
, you’ll notice the [InitializeSimpleMembership]
action filter which triggers the creation of your database.
So far I haven’t answered your question but my understanding (and I do have to mention that I have not tried or tested this) is that you could continue to use SimpleMembership
within an ASP.NET MVC 5.0 application as long (of course) as you’re not including any of the ASP.NET Identity stuff previously mentioned.
When you say “I am migrating to a newer version” do you mean that you’re simply updating the version of the MVC dll’s?
OR
Do you mean that you are now using the new ASP.NET Identity stuff and you are now looking for a way to migrate your users from the SimpleMembership to the new Identity TABLES?
Like I said, I have not tried migrating from MVC 4.0 to 5.0 but if I had to do it, I would only upgrade the MVC dll’s and other stuff here and there WITHOUT touching or adding anything relevant to ASP.NET Identity.
I would continue to use SimpleMembership.
Not sure if this will help (or not) but this is my understanding of things.
Otherwise, you may want to have a look at this post