Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,

I have a database table with a foreign key which is not enforced. My problem is, on my asp.net applications EntityDataModel, the same foreign key is being enforced, ie. I can't insert insert 'null' into a foreign key column which is nullable, and null doesn't exist on the foreign table. Any ideas on whether the enforce option can be set on the entity data model?

Thanks
Posted
Updated 28-Aug-11 21:35pm
v2

1 solution

Read more about Referential Constraints[^] in the Entity Framework.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900