示例#1
0
 public BELinks SelectAllInactive()
 {
     BELinks ds = new BELinks();
     DALinkCategories da = new DALinkCategories();
     da.SelectAllInactive(ds.tbl_LinkCategories);
     return ds;
 }
示例#2
0
 public BELinks SelectAllActive()
 {
     BELinks ds = new BELinks();
     DALinks da = new DALinks();
     da.SelectAllActive(ds.tbl_Links);
     return ds;
 }
示例#3
0
        public BELinks SelectByPageTypeSpecificIDAndPageTypeID(int pageTypeSpecificID, int pageTypeID)
        {
            BELinks ds = new BELinks();
            DALinkCategories da = new DALinkCategories();

            da.SelectByPageTypeSpecificIDAndPageTypeID(pageTypeSpecificID, pageTypeID, ds.tbl_LinkCategories);
            return ds;
        }
示例#4
0
        public BELinks SelectByID(int LinkCategoryID)
        {
            BELinks ds = new BELinks();
            DALinkCategories da = new DALinkCategories();

            da.SelectByID(LinkCategoryID.ToString(), ds.tbl_LinkCategories);
            return ds;
        }
示例#5
0
        public BELinks SelectByPageTypeSpecificIDAndPageTypeIDAndLinkListID(int pageTypeSpecificID, int pageTypeID, int linkListID)
        {
            BELinks ds = new BELinks();
            DALinks da = new DALinks();

            da.SelectByPageTypeSpecificIDAndPageTypeIDAndLinkListID(pageTypeSpecificID, pageTypeID, linkListID, ds.tbl_Links);
            return ds;
        }
示例#6
0
        public BELinks SelectByPageTypeSpecificIDAndPageTypeIDWithROColumns(int pageTypeSpecificID, int pageTypeID)
        {
            BELinks ds = new BELinks();
            DALinks da = new DALinks();

            da.SelectByPageTypeSpecificIDAndPageTypeIDWithROColumns(pageTypeSpecificID, pageTypeID, ds.tbl_Links);
            return ds;
        }
示例#7
0
 public void Update(BELinks ds)
 {
     DALinkCategories da = new DALinkCategories();
     da.Update(ds.tbl_LinkCategories);
 }
示例#8
0
        public void DeletePageLinkInfo()
        {
            BPLinks bpLinks = new BPLinks();
            BPLinkCategories bpLinkCategories = new BPLinkCategories();

            BELinks dsLinksInDataBase = new BELinks();

            dsLinksInDataBase = bpLinks.SelectByPageTypeSpecificIDAndPageTypeID(PageTypeSpecificID, PageTypeID);
            dsLinksInDataBase.Merge(bpLinkCategories.SelectByPageTypeSpecificIDAndPageTypeID(PageTypeSpecificID, PageTypeID));

            foreach (BELinks.tbl_LinksRow row in dsLinksInDataBase.tbl_Links)
                row.Delete();

            foreach (BELinks.tbl_LinkCategoriesRow row in dsLinksInDataBase.tbl_LinkCategories)
                row.Delete();

            bpLinks.Update(dsLinksInDataBase);
            bpLinkCategories.Update(dsLinksInDataBase);
        }
示例#9
0
        public BELinks SelectByDocumentID(int documentID)
        {
            BELinks ds = new BELinks();
            DALinks da = new DALinks();

            da.SelectByDocumentID(documentID, ds.tbl_Links);
            return ds;
        }
示例#10
0
 public void Update(BELinks ds)
 {
     DALinks da = new DALinks();
     da.Update(ds.tbl_Links);
 }