www.pudn.com > MyShop.rar > IArticle.cs
using System;
using System.Data;
using MyShop.Model;
namespace MyShop.IDAL
{
public interface IArticle
{
int Add(ArticleInfo model);
int Delete(string filter);
bool Exist(string filter);
DataSet GetDataSet();
DataSet GetDataSet(string filter);
ArticleInfo GetModel(DataRow dr);
DataSet Query(string sql);
int Update(ArticleInfo model, string filter);
///
/// 快速搜索
///
/// 文章频道ID
/// 文章栏目ID
/// 文章选项。无选定项时值应为空
/// true:返回放到回收站的文章;false:返回未放到回收站的文章
///
DataSet QuickSearch(int channelId, int classId, string articlOptionFilter, bool deleted);
///
/// 高级查询
///
/// 文章频道ID
/// 文章栏目ID
/// 文章选项。无选定项时值应为空
///
///
/// true:返回放到回收站的文章;false:返回未放到回收站的文章
///
DataSet KeywordsSearch(int channelId, int classId, string articlOptionFilter, string field, string keywords, bool deleted);
///
/// 最新文章
///
/// 返回文章个数
///
DataSet GetLastArticles(int count);
///
/// 执点文章
///
/// 返回文章个数
///
DataSet GetHotArticles(int count);
///
/// 推荐文章
///
/// 返回文章个数
///
DataSet GetRecommendedArticles(int count);
}
}