public interface IDbHelper
{
DataTable ExecuteDataTable(string comText);
DataTable ExecuteDataTable(string comText, ref string errorMsg);
bool ExecuteFunNonQuery(string funNme, params IDbDataParameter[] pars);
bool ExecuteFunNonQuery(string funNme, ref string errorMsg, params IDbDataParameter[] pars);
bool ExecuteNonQuery(string comText);
bool ExecuteNonQuery(string comText, ref string errorMsg);
bool ExecuteSqlTran(IList<string> comTextList);
bool ExecuteSqlTran(IList<string> comTextList, ref string errorMsg);
bool Exist(string comText);
Int64 GetMaxID(string fieldName, string tableName);
object GetSingle(string comText);
}
自认为这个数据访问层,还是挺不错的。