I saw the answers about this topic but not exactly such as mine.
I created a db schema by using EF1 in designer. I added relation One Or Zero To Many between 2 tables (EntityA and EntityB). Next I added one record to table EntityA and one record to EntityB which has id to EntityA record. As I see in design mode (in MS SMS) that field EntityA_id (in table EntityB) is set to ALLOW NULL, I tried to delete the record in table EntityA.
I expected that the record would be deleted and the field EntityA_id in table EntityB would be automatically set to NULL. Unfortunately I got exception: The DELETE statement conflicted with the REFERENCE constraint "FK_EntityAEntityB"
Why does the exception throw if the field with foreign key is set to ALLOW NULL?