May 03, 2019 05:40 AM|Ackerly Xu|LINK
Hi demoninside9 ,
I could not figure out another way, maybe you could try
I'm not sure Why you must use stored procedure.
Use entity framework's model you could get what you want without stored procedure and this is how ef is normally used.
If you want to add another entity to your dbcontext, you could try ef migrating(if you are using code-first)
But you should pay attention , when you updatedatabast , it may meet problem , if you already have table in your database.
Try to comment auto generated file's code related to create table.
public partial class masterlanguage : DbMigration
public override void Up()
// c => new
// id = c.Int(nullable: false, identity: true),
// language = c.String(),
// language_code = c.String(),
// sequence = c.String(),
// date_added = c.DateTime(nullable: false),
// .PrimaryKey(t => t.id);
public override void Down()
My file name in Migrations folder is 201905030517589_masterlanguage, yours may differ,but they look similar,masterlanguage is my migration's name