Hi,
web api uses standard a LocalDB database as membership store.
I like to use a remote SQL database for this where I store also my data in. I thought I would be simply a matter of changing connection strings in the web.config but I don't get it working.
this is part of my web.config:
...<connectionStrings><!--<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-WebApplication5-20160105050122.mdf;Initial Catalog=aspnet-WebApplication5-20160105050122;Integrated Security=True" providerName="System.Data.SqlClient" />--><add name="RoosterEntities" connectionString="metadata=res://*/Models.RoosterModel.csdl|res://*/Models.RoosterModel.ssdl|res://*/Models.RoosterModel.msl;provider=System.Data.SqlClient;provider connection string="data source=mssql2.websitelive.net;initial catalog=Warning_Rooster;persist security info=True;user id=*******;password=********;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /></connectionStrings> ...<!--<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"><parameters><parameter value="mssqllocaldb" /></parameters></defaultConnectionFactory>--><defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"><parameters><parameter value="RoosterEntities" /></parameters></defaultConnectionFactory>
I have added the 6 required tables in this new remote database under the dbo account.
What more do I need to do?
In the early days of ASP.net there was a nice website administration tool to configure security and some more things. is there still something like that?