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

前端 未结 4 2112
旧时难觅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:26

    I also found that you need to have the StoreGeneratedPattern set to Identity to get it to work on a nvarchar column that I was using as a primary key but which was not generating an identity value. This was for situations of an after insert trigger which computed a unique value to store in the key column. In other situations (add and update), it may require being set to Computed.

提交回复
热议问题