I've moved your message to this thread.
(and please, next time be careful what you paste in the subject
You pasted the complete message in the subject)
Hmm. Ok, so the actual insert code is causing hte error apparently.
Ok, I'd like to ask you to answer every question I list below so I can determine what's wrong:
- Can you insert other entities without problems?
- Do you use adapter or selfservicing?
- As you've used the sourcecode to debug the matter as it seems, could you set a breakpoint at line 110 in ActionQuery.cs, which is the call to the ExecuteNonQuery() statement and check what the following things are: The SQL being executed and the values for the parameters passed in. You can check these by checking base.Command.CommandText and base.Command.Parameters. It would be great if you could paste here:
- the table creation SQL
- SQL query
- the code you execute to fill the entity and save it.
I'm sure it's something small, but I think especially the last question is key to find out what's wrong.