下面写一下相对来说不变的地方

SQL语句部分,改成了静态函数的形式。

  1我的数据访问类(第二版)—— for .net2.0 (二)using System;
  2我的数据访问类(第二版)—— for .net2.0 (二)using System.Collections.Generic;
  3我的数据访问类(第二版)—— for .net2.0 (二)using System.Text;
  4我的数据访问类(第二版)—— for .net2.0 (二)using System.Data;
  5我的数据访问类(第二版)—— for .net2.0 (二)using System.Data.Common;
  6我的数据访问类(第二版)—— for .net2.0 (二)using System.Data.SqlClient;
  7我的数据访问类(第二版)—— for .net2.0 (二)using JYK;
  8我的数据访问类(第二版)—— for .net2.0 (二)
  9我的数据访问类(第二版)—— for .net2.0 (二)namespace JYK.DataAccessLibrary
 10


存储过程的代码

  1我的数据访问类(第二版)—— for .net2.0 (二)using System;
  2我的数据访问类(第二版)—— for .net2.0 (二)using System.Collections.Generic;
  3我的数据访问类(第二版)—— for .net2.0 (二)using System.Text;
  4我的数据访问类(第二版)—— for .net2.0 (二)using System.Data;
  5我的数据访问类(第二版)—— for .net2.0 (二)using System.Data.Common;
  6我的数据访问类(第二版)—— for .net2.0 (二)using JYK;
  7我的数据访问类(第二版)—— for .net2.0 (二)
  8我的数据访问类(第二版)—— for .net2.0 (二)
  9我的数据访问类(第二版)—— for .net2.0 (二)namespace JYK.DataAccessLibrary
 10}


这里没有使用静态函数的方式,目的是为了方便添加存储过程的参数。

相关文章:

  • 2021-07-12
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-01-18
  • 2021-10-08
  • 2022-01-06
猜你喜欢
  • 2021-11-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-05-20
  • 2022-12-23
相关资源
相似解决方案