I created an empty project (MVC), but now I want user tables and profiles to be added to my db

When you create a MVC application with Windows authentication, it adds roles and that does not apply to database tables ... How to add them manually if you created the project as an empty project?

I ran:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regsql.exe 

inside the packagemanager, but he made old versions

 aspnet_blabla 

.... Oh my god, there are so many tables and views added (cries himself to sleep)

I found http://msdn.microsoft.com/en-us/library/ms229862(v=vs.100).aspx#findingthecorrectversion which pretty much says the usual stuff that ends up posting crazy people in my database .: '(

Is there anything wrong with using aspnet_blabla tables?

+6
source share
1 answer

There are three primary membership (and role) options in the Microsoft stack by default. In order of cold (i.e., the newest to the oldest):

ASP.NET Identifier

This is a new cool released in tandem with VS2013. This is a simplified system implemented using EF Code First, and it is quite easy to connect to any project. Here is a walkthrough of this only . All project templates in VS2013 use this.

Simple membership

It is an easy implementation of the membership provider model (in more detail). Since the initial implementation was cumbersome, it tried to soften some of them. It is more compatible with old WebForms stuff. This was the best link I could find.

ASP.NET Membership Provider

This is a model that ships with .NET 2.0 and has a gigantic scheme. You can create a schema in your database using the aspnet_regsql tool.

+2
source

All Articles