Esempio n. 1
0
 private IEnumerable <Page> QueryBySite(Site site)
 {
     return(DataHelper.QueryList <Page>(site, ModelExtensions.GetQueryViewName(ModelExtensions.PageDataType), createModel)
            .Where(it => it.Parent == null));
 }
Esempio n. 2
0
 private IEnumerable <Page> AllPagesNested(Site site)
 {
     return(DataHelper.QueryList <Page>(site, ModelExtensions.GetQueryViewName(ModelExtensions.PageDataType), createModel));
 }
Esempio n. 3
0
 public static string GetViewBody(string dataType)
 {
     return(string.Format(DataHelper.ViewTemplate, ModelExtensions.GetQueryViewName(dataType), dataType));
 }
Esempio n. 4
0
 public IEnumerable <Page> ChildPages(Models.Page parentPage)
 {
     return(DataHelper.QueryList <Page>(parentPage.Site, ModelExtensions.GetQueryViewName(ModelExtensions.PageDataType), createModel)
            .Where(it => it.Parent == parentPage));
 }
Esempio n. 5
0
 public virtual IEnumerable <T> All(Models.Site site)
 {
     return(DataHelper.QueryList <T>(site, ModelExtensions.GetQueryViewName(DataType), CreateModel));
 }