Posted on: 3/3/2014 4:38:29 PM | Views : 760

Hi All,
This is something totally new to me, and maybe others. I have a web forms application. I already ran the database and registered a user in the local database. the reason I did this was because I am using code first migrations, and my Context class is going to create my database in the same database as the Membership provider. I am pointing my dbContex to it.
public class MemberExampleContext : DbContext { public MemberExampleContext() : base("DefaultConnection") //creating my database in the same db as membership provider { } public DbSet<DogInfo> DogInfoes { get; set; } public DbSet<Owner> Owners { get; set; } protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Conventions.Remove<PluralizingTableNameConvention>(); } } Now I am going to seed my database ...

Go to the complete details ...