I am working on a Windows Forms desktop app, I use Visual Studio 2015, Entity Framework approach code-firts.
The subject is the following: I have some tables such as: Purchases, Sales, TypeOperations and Movements.
In TipoOperacoines register the following data: Sale, Purchase, Consignment, Promotion, Prize, Donation, etc. and this is related to Movements.
I have related Sales and Purchases to Movements, but SellId and BuyId in Movements are an optional relation (means that allows null).
I show a data model because the UML I have is a bit extensive. The question is: How can I apply inheritance in this case? I use Entity Framework code-firts