Created
September 17, 2014 03:56
-
-
Save rofr/d56cfe45a49b213ea879 to your computer and use it in GitHub Desktop.
Building a CMS with OrigoDB - snippet 1
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 Page | |
| { | |
| public readonly Guid Id; | |
| public readonly DateTime Created; | |
| public string Title { get; set; } | |
| public string Contents { get; set; } | |
| public Page(Guid id, DateTime created) | |
| { | |
| Id = id; | |
| Created = created; | |
| Title = "Untitled page"; | |
| Contents = String.Empty; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment