Esempio n. 1
0
 public CommentModel()
 {
     this.index = new Lazy <int>(() => StoredProcs.Comments_GetCommentIndex(this.Id).Execute().Value);
     this.parentCommentIndex = new Lazy <int?>(() => this.ParentCommentId.HasValue ? StoredProcs.Comments_GetCommentIndex(this.ParentCommentId).Execute() : null);
     this.getLinks           = new Lazy <IList <string> >(() => HtmlCleaner.GetLinkUrls(this.BodyHtml).ToList());
 }
Esempio n. 2
0
 public CommentModel()
 {
     this.getLinks = new Lazy <IList <string> >(() => HtmlCleaner.GetLinkUrls(this.BodyHtml).ToList());
 }