Exemplo n.º 1
0
        public static WebsiteText Select(WebsiteTextType type)
        {
            var where = TableHelper.MakeDictionary("TextType", (int)type);
            var list = TableHelper.SelectRows <WebsiteText>(where);

            return(list.Count > 0 ? list[0] : new WebsiteText(type));
        }
Exemplo n.º 2
0
 public WebsiteText(WebsiteTextType type)
     : base()
 {
     Type      = type;
     Created   = DateTime.Now;
     fragments = new List <TextFragment>();
 }
Exemplo n.º 3
0
 public WebsiteText(WebsiteTextType type, string title, string content)
     : this(type, title)
 {
     Content = content;
 }
Exemplo n.º 4
0
 public WebsiteText(WebsiteTextType type, string title)
     : this(type)
 {
     Title = title;
 }