I'm usign inheritance in linq2sql and have entites Supplier and Buyer that inherits from Client. I need to be able "upgrade" a Buyer to a Supplier.
I've tried:
Client client = ClientMethods.ValidateId<Client>(clientId);
client.ClientTypeId = ClientMethods.CLIENT_TYPE_SUPPLIER;
db.SubmitChanges();
But get "Not allowed: Inheritance discriminator change from '1' to '2' would change type from 'Buyer' to 'Supplier'."
The only solution I can find is to do this without linq2sql and write a SP??