error when inserting into table having instead of trigger from entity data framework

前端 未结 4 2091
旧时难觅i
旧时难觅i 2020-11-28 12:01

I\'m using entity framework 4 , on inserting a new record using entity framework in a table that have instead of insert trigger while the table has an identity column , the

4条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 12:33

    You also need to return any properties marked as Computed

    select [Id], [YourComputedColumn]
    from [dbo].[TableXXX]
    where @@ROWCOUNT > 0 and [Id] = scope_identity()
    

提交回复
热议问题