This thing is driving me crazy, and the error is quite meaningless to me:
Unable to update the EntitySet \'TableB\' because it has a DefiningQuery and no elemen
I was missing a primary key on my table and got this error message. One thing I noted was after I added the key to the table, I needed to clear the table from the edmx using the designer, save the edmx, then update it again to add the table back in. It wasn't picking up the key since it was already assigned as a view. This didn't require editing the edmx manually.