object
does not contain a definition for Database
and no extension method Database
accepting a first argument of type object
could be found (are you missing a using directive or an assembly reference?)
UserStore userStore = new UserStore();
userStore.Context.Database.Connection = System.Configuration.ConfigurationManager.
ConnectionStrings["CartDBConnectionString"].ConnectionString;
UserManager<IdentityUser> manager = new UserManager<IdentityUser>(userStore);