public HomeController() { p = new PageRepository(new News_Agency_Entities()); pg = new PageGroupRepository(new News_Agency_Entities()); pc = new PageCommentRepository(new News_Agency_Entities()); lg = new LoginRepository(new News_Agency_Entities()); }
/// <summary> /// Adds the page group. /// </summary> /// <param name="pageGroup">The page group.</param> /// <returns>IDomainObject.</returns> public IDomainObject AddPageGroup(IPageGroup pageGroup) { if (pageGroup is DefaultPageGroup) { return(null); } return(AddPart(pageGroup)); }
public PageGroupsController() { pageGroupRepository = new PageGroupRepository(db); }
public PagesController() { p = new PageRepository(new News_Agency_Entities()); pg = new PageGroupRepository(new News_Agency_Entities()); }
public PagesController(IPages pagess, IPageGroup pageGroup) { this.pagess = pagess; this.pageGroup = pageGroup; }
public PageGroupsController(IPageGroup pageGroups) { this.pageGroups = pageGroups; }
/// <summary> /// This method copy's each database field which is not in the <paramref name="excludedColumns"/> /// from the <paramref name="source"/> interface to this data row. /// </summary> public void Copy_From_But_Ignore(IPageGroup source, params string[] excludedColumns) { if (!excludedColumns.Contains(PageGroupsTable.IdCol)) this.Id = source.Id; if (!excludedColumns.Contains(PageGroupsTable.NameCol)) this.Name = source.Name; }
/// <summary> /// This method copy's each database field which is in the <paramref name="includedColumns"/> /// from the <paramref name="source"/> interface to this data row. /// </summary> public void Copy_From_But_TakeOnly(IPageGroup source, params string[] includedColumns) { if (includedColumns.Contains(PageGroupsTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(PageGroupsTable.NameCol)) this.Name = source.Name; }
/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IPageGroup source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.Name = source.Name; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IPageGroup target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.Name = this.Name; }
public showByCountVMsComponents(IPageGroup pageGroup) { this.pageGroup = pageGroup; }
public NewsController() { pageGroupRepository = new PageGroupRepository(db); pageRepository = new PageRepository(db); pageCommentRepository = new PageCommentRepository(db); }
public PageCommentsController() { pg = new PageGroupRepository(new News_Agency_Entities()); pa = new PageRepository(new News_Agency_Entities()); pc = new PageCommentRepository(new News_Agency_Entities()); }