public class MyContext: BrockAllen.MembershipReboot.Ef.MembershipRebootDbContext<MyUserAccount>
{
public MyContext(string nameOrConnectionString) : base(nameOrConnectionString)
{
}
}
When I try to construct MyContext (and create database files) via the specified constructor passing the following connectionString:
Data Source=.\SQLExpress2012;AttachDbFilename=E:\db.mdf;Initial Catalog=db;Integrated Security=True;MultipleActiveResultSets=True
Membership completely ignored my connection string and changed it to the following value:
Data Source=.\SQLEXPRESS;Initial Catalog=MembershipReboot;Integrated Security=True;MultipleActiveResultSets=True
I have a class like this:
When I try to construct
MyContext
(and create database files) via the specified constructor passing the following connectionString:Membership completely ignored my connection string and changed it to the following value:
What went wrong?