When you create an MVC Application with Windows Authentication, it adds roles and what not to your database tables... How do you add those in manually if you have created the project as an empty project?
I have run:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regsql.exe
inside packagemanager but it has made the old versions
aspnet_blabla
.... Oh god, there's so many tables and views added (cries self 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 placing the crazies in my database. :'(
is there anything wrong with using the aspnet_blabla tables?
There are three main implementations of membership (and roles) in the default Microsoft stack. In order of coolness (i.e. newest to oldest), they are:
This is the new coolness, released in tandem with VS2013. It is a simplified system implemented with EF Code First, and should be pretty easy to plug into any project. Here is a walkthrough of doing just that. All of the project templates in VS2013 use this.
Is a light-weight implementation of the Membership Provider model (more below). As the original implementation was cumbersome, this tried to alleviate some of that. It is more compatible with older WebForms stuff. This was the best link I could find.
This is the model that shipped with .NET 2.0 and has a gigantic schema. You can create the schema in your database with the aspnet_regsql tool.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With