LINQ to SQL VS, association code generation warning
Posted: Thu 24 May 2012 20:07
Hi,
Have table with primary key RowID, guid.
Another child table with the same primary key RowId and foreighn key to table 1. I.e. 1 to 1 relation, record in the second table is optional.
When I set default DeleteOnNull association property to False, Entity Developer generates a warning: Association 'Association_Name' is based on a non-nullable property(ies). In case any 'ObjectOne' object is removed ...
When I change it to True, no warnings, but I get exception
Invalid DeleteOnNull specification for member 'MyMember'. DeleteOnNull can only be true for singleton association members mapped to non-nullable foreign key columns.
Any way to disable that warning?
Thanks,
Have table with primary key RowID, guid.
Another child table with the same primary key RowId and foreighn key to table 1. I.e. 1 to 1 relation, record in the second table is optional.
When I set default DeleteOnNull association property to False, Entity Developer generates a warning: Association 'Association_Name' is based on a non-nullable property(ies). In case any 'ObjectOne' object is removed ...
When I change it to True, no warnings, but I get exception
Invalid DeleteOnNull specification for member 'MyMember'. DeleteOnNull can only be true for singleton association members mapped to non-nullable foreign key columns.
Any way to disable that warning?
Thanks,