Created
September 17, 2014 03:47
-
-
Save rofr/769653f48d2c7e26cb5f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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