Skip to content

Instantly share code, notes, and snippets.

@pvivera
Last active December 12, 2015 02:18
Show Gist options
  • Save pvivera/4697804 to your computer and use it in GitHub Desktop.
Save pvivera/4697804 to your computer and use it in GitHub Desktop.
public class User
{
public string Username { get; set; }
public bool Active { get; set; }
}
public class Group
{
public string Name { get; set; }
public List<User> Users { get; set; }
}
@pvivera
Copy link
Author

pvivera commented Feb 2, 2013

If I set Active = false for one user I don't loop all Groups search that specific user to set that property.
BTW I don't what want save the complete User for each Group that it belongs = space waste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment