Question

I 'm working on an ASP.NET Dynamic Data Entities Web Application.

When trying to insert a new entry in one of the tables, with some value in the column_name field, I get the following message :

Cannot insert the value NULL into column 'column_name', table 'DATABASE.dbo.table_name'; column does not allow nulls. INSERT fails.

The column properties are :

  • Entity Key : True
  • Nullable : False
  • Type : String

I believe Dynamic Data is trying to send null value to entity framework for some reason, but I don't know which.

Do you know why Dynamic Data is behaving that way ? Or have you any idea how to debug the insert process ?

Thanks

Was it helpful?

Solution

I found where the problem come from. A table from the database the model is based contains a trigger. For some reason the model makes an association between the two tables involved in the trigger.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top