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);
    }

自认为这个数据访问层,还是挺不错的。

posted on 2011-03-29 13:07  lorgine  阅读(342)  评论(2编辑  收藏  举报