简体   繁体   中英

.Net core, Ef7 deploy to production

I Have my core2.0 project finally production ready,

Bummer, can't deploy it ot Azure without migrations. (All migrations are in the code).

database ready (Empty)

Project ready (ok in local with localdb)

Now,

How can I applly all migration in production on "publish" in VS2017 of my app ?

So far my best guess is : Extract dacpac from localdb, manually apply it to Azure, change connection string.

But I hope where is a better way !

Edit :

Edit2 : Removed useless rant

Now I feel stupid. With core2 there is no more need to manually encode things like'&' (=&) In new config you can just put it like it is “&blalalala”.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM