Entity Framework Core - Code First Migrations - No tables created on Azure -


i can add migration , update database locally nuget package manager console.

can force migrations within publishing dialog in visual studio specifying remote connection string (copy / pasted azure web app application settings).

however, if setup continuous integration build source control, tables not updated when push new code migrations.

here startup configureservices:

public void configureservices(iservicecollection services)     {         services.adddbcontext<mycontext>(options => options.usesqlserver(configuration.getconnectionstring("defaultconnection")));         services.addmvc();     } 

here mycontext:

public class squashcontext : dbcontext {     public dbset<inscription> inscriptions { get; set; }      public mycontext(dbcontextoptions<mycontext> options) : base(options)     {}      protected override void onmodelcreating(modelbuilder modelbuilder)     {         base.onmodelcreating(modelbuilder);         modelbuilder.entity<inscription>();     } } 

i don't think need override onmodelcreating nothing on inscription entity , didn't have .net framework in doubt i've put here.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -