Let's say I have the following two models:
Person N
Subscription N
They are in a many-to-many relationship (Each Person can have multiple Subscriptions, and each Subscription can have multiple Persons), so Entity Framework creates a cross reference table:
PersonSubscriptions: PersonId | SubscriptionId
If I wanted to record when each person started subscribing, it would make the most sense to have a Date column in the cross reference table:
PersonSubscriptions: PersonId | SubscriptionId | SubscribedOn
How can I achieve this with Entity Framework and how would I query, say, to get all Persons that subscribed after day X to a given Subscription?