예제 #1
0
파일: Post.cs 프로젝트: dgryphon/personal
 /// <summary>
 /// The default contstructor assign default values.
 /// </summary>
 public Post()
 {
     base.Id            = Guid.NewGuid();
     _Comments          = new List <Comment>();
     _Categories        = new StateList <Category>();
     _Tags              = new StateList <string>();
     DateCreated        = DateTime.Now;
     _IsPublished       = true;
     _IsCommentsEnabled = true;
 }
예제 #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref = "Post" /> class.
 ///     The default contstructor assign default values.
 /// </summary>
 public Post()
 {
     this.Id                 = Guid.NewGuid();
     this.allcomments        = new List <Comment>();
     this.categories         = new StateList <Category>();
     this.tags               = new StateList <string>();
     this.notificationEmails = new StateList <string>();
     this.DateCreated        = DateTime.Now;
     this.isPublished        = true;
     this.hasCommentsEnabled = true;
 }