I am using the VS2010 + SQL Server CE 3.5 + EF + Framework 4.
I have no problem in reading data from SQL Server CE.
But on inserting data with this code:
EFConn.SaveChanges();
I get an error:
Error: An error occurred while updating the entries. See the inner exception for details.
please help me...
Error detail :
System.Data.UpdateException was unhandled
Message=An error occurred while updating the entries. See the inner exception for details.
Source=System.Data.Entity
InnerException: System.Data.EntityCommandCompilationException
Message=An error occurred while preparing the command definition. See the inner exception for details.
Source=System.Data.Entity
InnerException: System.NotSupportedException
Message=Server-generated keys and server-generated values are not supported by SQL Server Compact.
Source=System.Data.SqlServerCe.Entity