Using db as New MyDbContext(ConfigurationManager.ConnectionStrings("MyBaseConn").ConnectionString.Replace("Password=xxx", "Password=yyy"))