Possible Duplicate:
How to Turn on IDENTITY_INSERT in SQL Server 2008?
Trying to insert data via entity framework into a SQL Server 2008 database. I get error
IDENTITY_INSERT is set to OFF
from the application.
I have ran query SET IDENTITY_INSERT Database. dbo. Baskets ON
And got the message back Command(s) completed successfully. But error still occur...?
storeDB.Baskets.Add(cartItem);
storeDB.SaveChanges();
Occurs at storeDB.SaveChanges();