Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Correct Publishing my Website

$
0
0

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. 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>