private void GetFriendlyUrl(string hostName, string friendlyUrl) { using (IDataReader reader = DBFriendlyUrl.GetByUrl(hostName, friendlyUrl)) { GetFriendlyUrl(reader); } }
private void GetFriendlyUrl(int siteId, string friendlyUrl) { using (IDataReader reader = DBFriendlyUrl.GetFriendlyUrl(siteId, friendlyUrl)) { GetFriendlyUrl(reader); } }
private void GetFriendlyUrl(int urlId) { using (IDataReader reader = DBFriendlyUrl.GetFriendlyUrl(urlId)) { GetFriendlyUrl(reader); } }
private bool Update() { return(DBFriendlyUrl.UpdateFriendlyUrl( this._urlId, this._siteId, this.PageGuid, this._friendlyUrl, this._realUrl, this._isPattern)); }
private bool Update() { return(DBFriendlyUrl.UpdateFriendlyUrl( this.urlID, this.siteID, this.PageGuid, this.friendlyUrl, this.realUrl, this.isPattern)); }
/// <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)); }
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); }
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); }
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); }
public static bool DeleteByPageGuid(Guid pageGuid) { return(DBFriendlyUrl.DeleteByPageGuid(pageGuid)); }
public static bool DeleteUrlByPageId(int pageId) { return(DBFriendlyUrl.DeleteByPageId(pageId));; }
public static bool DeleteUrl(int urlId) { return(DBFriendlyUrl.DeleteFriendlyUrl(urlId)); }
public static DataTable GetBySite(int siteId) { return(DBFriendlyUrl.GetBySite(siteId)); }
public static DataTable GetByHostName(string hostName) { return(DBFriendlyUrl.GetByHostName(hostName)); }