数据访问接口层

using System;
  using System.Collections.Generic;
  using System.Text;
  using System.Collections;
  using System.Data;
   
  namespace ERPDAL
  {
   public interface IDAL
   {
    /*-------------- 说明 -------------------------------
   //
   // 名称:IDAL
   // 功能描述:
   // 此类由 CommonDAL 类继承,并实现相应的方法
   //本类用于统一接口,接收客户端向服务器发送的请求,都必须经此用 父类实例化子类的对象 进行调用
   //
   // 创建标识:
   //
   //
   //----------------------------------------------------------------*/
   
   //参数说明:
   //sqlType 表示 传入的是 sqlstring 还是 procedure
   //operateType 表示操作的类型(insert 、update、delete)
    //hashTable 表示传入的参数键值对
   //dataSet 表示要更新的记录集
   //strOutMessage 表示要传出由服务器产生,又要返回到客户端的数据
  
   DataSet Select(string sqlType,Hashtable hashTable); //查询返回记录集
   bool UpdateByAdapter(DataSet dataSet, out string strOutMessage); //根据 Adapter 进行增加、修改、删除操作
   bool UpdateByTsql(string operateType, string sqlType, Hashtable hashTable); //根据 Tsql 语句进行增加、删除、修改操作
  
   }
  }


   本人博客的文章大部分来自网络转载,因为时间的关系,没有写明转载出处和作者。所以在些郑重的说明:文章只限交流,版权归作者。谢谢

原文地址:https://www.cnblogs.com/wzg0319/p/1690033.html