Can't Disable Pluralization of Membership Entities.

Aug 10, 2012 at 3:57 AM
Edited Aug 10, 2012 at 3:58 AM

So basically I have this in my DbContext class:


protected override void OnModelCreating(DbModelBuilder modelBuilder)
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<DataContext, Configuration>());


I've remapped DbContext class like so:


public DbSet<User> User { get; set; }
public DbSet<Role> Role { get; set; }


Removing the naming convention with: 

 takes place only after I update/modify the Classes with additional attribute, so I have duplicate Tables for Users (called "User" and "Users") and Roles (called "Role" and "Roles").

Any help is appreciated.


Aug 10, 2012 at 4:56 AM

Sorry, it seemed like my Membership wasn't configured properly, so my web.config was using the default Membership provider which basically installs everything from aspnet_regsql. 

Anyhow... thanks for this package, it really is amazing!