EF Code first: Mapping of entities to existing database with intermediate table?

Your mapping will not work - you can't map OrderingStatus to your Prodcut because it is not in the same table and it is not related by one-to-one relation to the Product. It is in separate table with one-to-many relation. You must expose OrdersProducts as separate entity because your junction table contains additional properties which you want to use.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions