/// <summary> /// 是否存在标题 /// </summary> public bool ExistsTitle(int channel_id, string title) { string channelName = new BLL.site_channel().GetChannelName(channel_id);//查询频道名称 if (string.IsNullOrEmpty(channelName)) { return(false); } return(int.Parse(dal.GetExists(sysdatabaseprefix, channelName, "count(1)", string.Format("title='{0}'", title))) > 0); }