Hello,
i have some problems to publish my website. I have a asp.core website with angular 2 as frontent. Now i want to publish my website to my IIS. I publish with Web Deploy.
- At Settings i can config some konfigurations (but i don't know what the different).
- Target is .NETCoreApp,Version=v1.0
- At Databases i see the connectionsstrings i write into my appsettings.json. i chose the "production" string and choose "use connection..."
First: But there is no setting to Exectute Code First Migration on Application Start. What can i do?
Second: i used this code to get my connection string. i think this is not correct.
services.AddDbContext<ApplicationDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LocalConnection")));
Sorry for my bad english.