because we have instead of insert trigger on table.
Check out this for more info...
http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=20431
Reply from one of your guys:
Are you setting the [urldescription="SQL Compatibility level"]on you *.config?
My guess is that you have an InsteadOfInsert trigger on the EMP_SERVICE table. If that is the case, then SCOPE_IDENTITY won't work, you should use @@IDENTITY instead. So try the following:
- Open your LLBLGen project and go to edit the EmpService entity.
- Go to Field Mappings sub-tab.
- Select the primary key field. There change it's sequence from SCOPE_IDENTITY to @@IDENTITY.
- Regenerate the code and try again.