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
You also need to return any properties marked as Computed
select [Id], [YourComputedColumn] from [dbo].[TableXXX] where @@ROWCOUNT > 0 and [Id] = scope_identity()