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
Post a Comment