ASP.NET MVC 4 and dynamically changing membership connection string with CodeFirst
问题 I am working on creating a MVC4 multi-tenant site that uses seperate DBs for each tenant and have been trying to get the membership piece to work for each tenant without any luck. For some reason connectionStringField is always null no matter what I do. Any ideas why this could happen? public class CodeFirstMembershipProvider : MembershipProvider { public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config) { base.Initialize(name, config); // hard