3

If I have many to many relation ship in database witch is looking like that:

House-HouseType-Type

In data model it is looking like that

House-Type

I cant modify table HouseType directly because there is no entity for that.

For example if I have insert some entities in database after records in table HouseType looking like that:

HouseId TypeId
1       2
1       3
1       4

than I want to remove some relations records.

e.g Records in table after remove would be:

  HouseId TypeId
    1       2

How can I do that in Entity Framework 4 ?

1 Answer 1

4
house.Types.Remove(type)

or

type.Houses.Remove(house)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.