Skip to content

Instantly share code, notes, and snippets.

@rofr
Created September 17, 2014 03:47
Show Gist options
  • Select an option

  • Save rofr/769653f48d2c7e26cb5f to your computer and use it in GitHub Desktop.

Select an option

Save rofr/769653f48d2c7e26cb5f to your computer and use it in GitHub Desktop.
[Serializable]
public class Category
{
public int Id { get; set; }
public string Name { get; set; }
}
[Serializable]
public class User
{
[Key]
public string Email { get; set; }
}
[Serializable]
public class Task : IComparable<Task>
{
public Guid Id { get; set; }
public string Name { get; set; }
public DateTime DueBy{ get; set; }
public int CategoryId { get; set; }
public int CompareTo(Task other)
{
return Id.CompareTo(other.Id);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment