using System;
using System.Data;
namespace Dukey.IDAL
{
	/// <summary>
	/// ½Ó¿Ú²ãIBoards µÄÕªÒªËµÃ÷¡£
	/// </summary>
	public interface IBoards
	{
		#region  ³ÉÔ±·½·¨
		/// <summary>
		/// µÃµ½×î´óID
		/// </summary>
		int GetMaxId();
		/// <summary>
		/// ÊÇ·ñ´æÔÚ¸Ã¼ÇÂ¼
		/// </summary>
		bool Exists(int bid);
		/// <summary>
		/// Ôö¼ÓÒ»ÌõÊý¾Ý
		/// </summary>
		int Add(Dukey.Model.Channel model);
		/// <summary>
		/// ¸üÐÂÒ»ÌõÊý¾Ý
		/// </summary>
		void Update(Dukey.Model.Channel model);
		/// <summary>
		/// É¾³ýÒ»ÌõÊý¾Ý
		/// </summary>
		void Delete(int bid);
		/// <summary>
		/// µÃµ½Ò»¸ö¶ÔÏóÊµÌå
		/// </summary>
		Dukey.Model.Channel GetModel(int bid);
		/// <summary>
		/// »ñµÃÊý¾ÝÁÐ±í
		/// </summary>
		DataSet GetList(string strWhere);
		/// <summary>
		/// »ñµÃÇ°¼¸ÐÐÊý¾Ý
		/// </summary>
		DataSet GetList(int Top,string strWhere,string filedOrder);
		/// <summary>
		/// ¸ù¾Ý·ÖÒ³»ñµÃÊý¾ÝÁÐ±í
		/// </summary>
		//DataSet GetList(int PageSize,int PageIndex,string strWhere);
		#endregion  ³ÉÔ±·½·¨
	}
}
