Skip to content

Instantly share code, notes, and snippets.

@kemsky
Last active July 4, 2023 15:27
Show Gist options
  • Save kemsky/fc569c55c37d9f85deb8cd5ebc11b6ca to your computer and use it in GitHub Desktop.
Save kemsky/fc569c55c37d9f85deb8cd5ebc11b6ca to your computer and use it in GitHub Desktop.
[Medium] Entities
public class User
{
public int Id { get; set; }
public string Name { get; set; }
public bool Active { get; set; }
public Subscription Subscription { get; set; }
public List<Department> Departments { get; set; }
}
public class Department
{
public int Id { get; set; }
public string Name { get; set; }
public bool Active { get; set; }
}
public enum Subscription
{
Subscribed,
Unsubscribed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment