How to execute stored procedure with input and output parameters using EF?

前端 未结 3 598
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-11 08:51

I am using EF code first approach and I have created stored procedure using migration as following:

public override void Up()
    {
        Sql(@\"CREATE TYP         


        
3条回答
  •  被撕碎了的回忆
    2020-12-11 09:29

    You will have to obtain your data a different way:

    You cannot return data in a table-valued parameter. Table-valued parameters are input-only; the OUTPUT keyword is not supported.

提交回复
热议问题