Esempio n. 1
0
 public LayoutTypesReference(IDexCMSBaseContext Context)
 {
     OneColumn = Context.LayoutTypes.Where(x => x.Name == "One Column").Select(x => x.LayoutTypeID).Single();
     TwoColumn = Context.LayoutTypes.Where(x => x.Name == "Two Column").Select(x => x.LayoutTypeID).Single();
     ThreeColumn = Context.LayoutTypes.Where(x => x.Name == "Three Column").Select(x => x.LayoutTypeID).Single();
     RightSidebar = Context.LayoutTypes.Where(x => x.Name == "Right Sidebar with Content").Select(x => x.LayoutTypeID).Single();
     LeftSidebar = Context.LayoutTypes.Where(x => x.Name == "Left Sidebar with Content").Select(x => x.LayoutTypeID).Single();
     RightSidebarOnly = Context.LayoutTypes.Where(x => x.Name == "Right Sidebar Only").Select(x => x.LayoutTypeID).Single();
     LeftSidebarOnly = Context.LayoutTypes.Where(x => x.Name == "Left Sidebar Only").Select(x => x.LayoutTypeID).Single();
 }
Esempio n. 2
0
 public ContentsReference(IDexCMSBaseContext Context)
 {
     OneColumn = Context.PageContents.Where(x => x.PageTitle == "One Column").Select(x => x.PageContentID).Single();
     TwoColumn = Context.PageContents.Where(x => x.PageTitle == "Two Column").Select(x => x.PageContentID).Single();
     ThreeColumn = Context.PageContents.Where(x => x.PageTitle == "Three Column").Select(x => x.PageContentID).Single();
     RightSidebar = Context.PageContents.Where(x => x.PageTitle == "Right Sidebar").Select(x => x.PageContentID).Single();
     LeftSidebar = Context.PageContents.Where(x => x.PageTitle == "Left Sidebar").Select(x => x.PageContentID).Single();
     RightSidebarOnly = Context.PageContents.Where(x => x.PageTitle == "Right Sidebar Only").Select(x => x.PageContentID).Single();
     LeftSidebarOnly = Context.PageContents.Where(x => x.PageTitle == "Left Sidebar Only").Select(x => x.PageContentID).Single();
     ControlPanel = Context.PageContents.Where(x => x.PageTitle == "Control Panel").Select(x => x.PageContentID).Single();
 }
Esempio n. 3
0
 public PageTypesReference(IDexCMSBaseContext Context)
 {
     SiteContent = Context.PageTypes.Where(x => x.Name == "Site Content").Select(x => x.PageTypeID).Single();
 }
Esempio n. 4
0
 public AreasReference(IDexCMSBaseContext Context)
 {
     Public = Context.ContentAreas.Where(x => x.Name == "Public").Select(x => x.ContentAreaID).Single();
     ControlPanel = Context.ContentAreas.Where(x => x.Name == "Control Panel").Select(x => x.ContentAreaID).Single();
 }
Esempio n. 5
0
 public CategoriesReference(IDexCMSBaseContext Context)
 {
     Account = Context.ContentCategories.Where(x => x.Name == "Account").Select(x => x.ContentCategoryID).Single();
     Contact = Context.ContentCategories.Where(x => x.Name == "Contact").Select(x => x.ContentCategoryID).Single();
     ManageAccount = Context.ContentCategories.Where(x => x.Name == "Manage Account").Select(x => x.ContentCategoryID).Single();
 }