edmx - The operation could not be completed - When adding Inheritance
Posted
by vdh_ant
on Stack Overflow
See other posts from Stack Overflow
or by vdh_ant
Published on 2010-03-28T23:27:45Z
Indexed on
2010/03/28
23:33 UTC
Read the original article
Hit count: 257
Hey guys
I have an edmx model which I have draged 2 tables onto - One called 'File' and the other 'ApplicaitonFile'. These two tables have a 1 to 1 relationship in the database. If I stop here everything works fine.
But in my model, I want 'ApplicaitonFile' to inherit from 'File'. So I delete the 1 to 1 relationship then configure 'ApplicaitonFile' from 'File' and then remove the FileId from 'ApplicaitonFile' which was the primary key. (Note I am following the instructions from here).
If I leave the model open at this point everything is fine, but as soon as I close it, if I try and reopen it again I get the following error "The operation could not be completed".
I have been searching for a solution and found this - http://stackoverflow.com/questions/944050/entity-model-does-not-load but as far as I can tell I don't have a duplicate InheritanceConnectors (although I don't know exactly what I'm looking for but I can't see anything out of the ordinary - like 2 connectors with the same name) and the relationship I originally have is a 1 to 1 not a 1 to 0..1
Any ideas??? this is driving me crazy...
© Stack Overflow or respective owner