Skip to content

Instantly share code, notes, and snippets.

@Patrick-Ullrich
Last active November 25, 2020 04:42
Show Gist options
  • Save Patrick-Ullrich/7fbc140fe2b58c1c8923b72e3481836e to your computer and use it in GitHub Desktop.
Save Patrick-Ullrich/7fbc140fe2b58c1c8923b72e3481836e to your computer and use it in GitHub Desktop.
M2M-EF-Entities-Old
public class Subscriber
{
public int Id { get; set; }
public string Name { get; set; }
public int Age { get; set; }
public ICollection<Subscription> Subscriptions { get; set; }
}
public class Streamer
{
public int Id { get; set; }
public string Name { get; set; }
public ICollection<Subscription> Subscriptions { get; set; }
}
public class Subscription
{
public Streamer Streamer { get; set; }
public Subscriber Subscriber { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment