I am stuck in strange problem. I have a table say "Location" with two FKs i.e. Geographic, TelephoneNumber.
Model wise both has exactly same relationship i.e. allow null true for Location.telephonenumberid and Location.GeographicId however when I remove telephonenumber it works perfectly fine and new number gets added. However same thing is failing for GeographicId it always fails with error "The primary key value cannot be deleted because references to this key still exist." I am assuming setting allow null to telephonenumberid and geographicid in location table and defining relationship as 0-* - 1 should work like optional relationship but its not happening.
Any help would be appreciable
Regards Rashmi