c# - No CreateStoredProcedure method on Entity Framework Core -


i want create stored procedure using migration builder there no

createstoredprocedure

method in migration class this.

public override void up()  {   createstoredprocedure(     "mystoredprocedure",     p => new     {         id = p.int()     },     @"select some-data my-table id = @id"   ); }  public override void down()  {   dropstoredprocedure("mystoredprocedure"); } 

how create stored procedure in migration using entity framework core?

use can use migrationbuilder.sql() method execute arbitrary sql in migrations ef core


Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

angular - Angular2 Router: Cannot find primary outlet to load 'HomeComponent' -

javascript - Why Selenium can't find an element that is graphically visible -