示例#1
0
 private void GetFriendlyUrl(string hostName, string friendlyUrl)
 {
     using (IDataReader reader = DBFriendlyUrl.GetByUrl(hostName, friendlyUrl))
     {
         GetFriendlyUrl(reader);
     }
 }
示例#2
0
 private void GetFriendlyUrl(int siteId, string friendlyUrl)
 {
     using (IDataReader reader = DBFriendlyUrl.GetFriendlyUrl(siteId, friendlyUrl))
     {
         GetFriendlyUrl(reader);
     }
 }
示例#3
0
 private void GetFriendlyUrl(int urlId)
 {
     using (IDataReader reader = DBFriendlyUrl.GetFriendlyUrl(urlId))
     {
         GetFriendlyUrl(reader);
     }
 }
示例#4
0
 private bool Update()
 {
     return(DBFriendlyUrl.UpdateFriendlyUrl(
                this._urlId,
                this._siteId,
                this.PageGuid,
                this._friendlyUrl,
                this._realUrl,
                this._isPattern));
 }
示例#5
0
 private bool Update()
 {
     return(DBFriendlyUrl.UpdateFriendlyUrl(
                this.urlID,
                this.siteID,
                this.PageGuid,
                this.friendlyUrl,
                this.realUrl,
                this.isPattern));
 }
示例#6
0
 /// <summary>
 /// Gets a page of data from the cy_FriendlyUrls table.
 /// </summary>
 /// <param name="siteId">The siteId.</param>
 /// <param name="pageNumber">The page number.</param>
 /// <param name="pageSize">Size of the page.</param>
 /// <param name="totalPages">total pages</param>
 public static IDataReader GetPage(
     int siteId,
     int pageNumber,
     int pageSize,
     out int totalPages)
 {
     return(DBFriendlyUrl.GetPage(
                siteId,
                pageNumber,
                pageSize,
                out totalPages));
 }
示例#7
0
        public static bool Exists(int siteId, String friendlyUrl)
        {
            bool result = false;

            using (IDataReader reader = DBFriendlyUrl.GetFriendlyUrl(siteId, friendlyUrl))
            {
                while (reader.Read())
                {
                    result = true;
                }
            }

            return(result);
        }
示例#8
0
        private bool Create()
        {
            int newID = 0;

            this._itemGuid = Guid.NewGuid();

            newID = DBFriendlyUrl.AddFriendlyUrl(
                this._itemGuid,
                this._siteGuid,
                this._pageGuid,
                this._siteId,
                this._friendlyUrl,
                this._realUrl,
                this._isPattern);

            this._urlId = newID;

            return(newID > 0);
        }
示例#9
0
        private bool Create()
        {
            int newID = 0;

            this.itemGuid = Guid.NewGuid();

            newID = DBFriendlyUrl.AddFriendlyUrl(
                this.itemGuid,
                this.siteGuid,
                this.pageGuid,
                this.siteID,
                this.friendlyUrl,
                this.realUrl,
                this.isPattern);

            this.urlID = newID;

            return(newID > 0);
        }
示例#10
0
 public static bool DeleteByPageGuid(Guid pageGuid)
 {
     return(DBFriendlyUrl.DeleteByPageGuid(pageGuid));
 }
示例#11
0
 public static bool DeleteUrlByPageId(int pageId)
 {
     return(DBFriendlyUrl.DeleteByPageId(pageId));;
 }
示例#12
0
 public static bool DeleteUrl(int urlId)
 {
     return(DBFriendlyUrl.DeleteFriendlyUrl(urlId));
 }
示例#13
0
 public static DataTable GetBySite(int siteId)
 {
     return(DBFriendlyUrl.GetBySite(siteId));
 }
示例#14
0
 public static DataTable GetByHostName(string hostName)
 {
     return(DBFriendlyUrl.GetByHostName(hostName));
 }