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
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.