using Models; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; namespace Interface { public interface BaseInterface { Boolean Add(T data); bool CBAdd(string sql, SqlParameter[] para); Boolean DeleteItemBykey(object key); T QueryItembyKey(object key); Boolean Update(T data); List GetList(int page, int rows, string order, List expression, bool isDesc = true); List GetList(string order,List expression, bool isDesc = true); IEnumerable FindeList(string sql, SqlParameter[] para=null); int GetCount(); int GetPageListCount(List expression); } }