How Do I Get Entity Framework To Update Complex Types?

后端 未结 2 1787
旧巷少年郎
旧巷少年郎 2021-01-30 12:56

I\'m using the Entity Framework (EF) to create a complex type from a stored procedure. Recently, the stored procedure changed (more return values were added. I would like to upd

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 13:37

    There is an easier way to achieve that, look here at SO. It adds some meta information to the stored procedure, which the EF uses to generate the appropriate return type for you.

    The meta information part of the stored procedure is not executed, it just tells about which columns and datatypes it returns.

提交回复
热议问题