bbsrevertDAL.cs
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:21k
源码类别:

OA系统

开发平台:

C#

  1. // =================================================================== 
  2. // 产品(COM.OA.SqlServerDAL)项目
  3. //====================================================================
  4. // wangyp @Copy Right 2006-2008
  5. // 文件:bbsrevertDAL.cs
  6. // 项目名称:工程项目管理
  7. // 创建时间:2008-9-23
  8. // 负责人:wangyp
  9. // 先创建SqlHelper.cs文件,引用System.Configuration程序集和实体(COM.OA.Entity)、产品规则(COM.OA.IDAL)项目、引用业务逻辑(COM.OA.BLL)项目
  10. // ===================================================================
  11. using System;
  12. using System.Collections;
  13. using System.Collections.Generic;
  14. using System.Data;
  15. using System.Data.SqlClient;
  16. using System.Text;
  17. using COM.OA.Entity;
  18. using COM.OA.IDAL;
  19. using COM.OA.BLL;
  20. namespace COM.OA.SqlServerDAL
  21. {
  22.     /// <summary>
  23.     /// 数据访问层dbo.bbsrevert
  24.     /// </summary>
  25.     public partial class bbsrevertDAL : IbbsrevertDAL
  26.     {
  27.         #region 构造函数
  28.         /// <summary>
  29.         /// 数据层实例化
  30.         /// </summary>
  31.         public bbsrevertDAL()
  32.         {
  33.         }
  34.         #endregion
  35.         #region -----------实例化接口函数-----------
  36.         #region 添加
  37.         /// <summary>
  38.         /// 向数据库中插入一条新记录
  39.         /// </summary>
  40.         /// <param name="bbsrevert">bbsrevert实体对象</param>
  41.         /// <returns></returns>
  42.         public int Insert(bbsrevert bbsrevert)
  43.         {
  44.             string sqlCommand = "bbsrevertInsert";
  45.             int res;
  46.             SqlParameter[] param ={
  47. new SqlParameter("@br_id",SqlDbType.Int),
  48. new SqlParameter("@br_bbs_id",SqlDbType.Int),
  49. new SqlParameter("@br_revertcontent",SqlDbType.VarChar),
  50. new SqlParameter("@br_reverttime",SqlDbType.DateTime),
  51. new SqlParameter("@br_u_id",SqlDbType.Int)
  52. };
  53.             param[0].Direction = ParameterDirection.Output;
  54.             param[1].Value = bbsrevert.br_bbs_id;
  55.             param[2].Value = bbsrevert.br_revertcontent;
  56.             param[3].Value = bbsrevert.br_reverttime;
  57.             param[4].Value = bbsrevert.br_u_id;
  58.             res = SqlHelper.ExecuteNonQuery(Conn.SqlConn, CommandType.StoredProcedure, sqlCommand, param);
  59.             bbsrevert.br_id = ((param[0].Value) == DBNull.Value) ? 0 : Convert.ToInt32(param[0].Value);
  60.             return res;
  61.         }
  62.         /// <summary>
  63.         /// 向数据库中插入一条新记录。带事务
  64.         /// </summary>
  65.         /// <param name="sp">事务对象</param>
  66.         /// <param name="bbsrevert">bbsrevert实体对象</param>
  67.         /// <returns></returns>
  68.         public int Insert(SqlTransaction sp, bbsrevert bbsrevert)
  69.         {
  70.             string sqlCommand = "bbsrevertInsert";
  71.             int res;
  72.             SqlParameter[] param ={
  73. new SqlParameter("@br_id",SqlDbType.Int),
  74. new SqlParameter("@br_bbs_id",SqlDbType.Int),
  75. new SqlParameter("@br_revertcontent",SqlDbType.VarChar),
  76. new SqlParameter("@br_reverttime",SqlDbType.DateTime),
  77. new SqlParameter("@br_u_id",SqlDbType.Int)
  78. };
  79.             param[0].Direction = ParameterDirection.Output;
  80.             param[1].Value = bbsrevert.br_bbs_id;
  81.             param[2].Value = bbsrevert.br_revertcontent;
  82.             param[3].Value = bbsrevert.br_reverttime;
  83.             param[4].Value = bbsrevert.br_u_id;
  84.             res = SqlHelper.ExecuteNonQuery(sp, CommandType.StoredProcedure, sqlCommand, param);
  85.             bbsrevert.br_id = ((param[0].Value) == DBNull.Value) ? 0 : Convert.ToInt32(param[0].Value);
  86.             return res;
  87.         }
  88.         #endregion
  89.         #region 更新
  90.         /// <summary>
  91.         /// 向数据表bbsrevert更新一条记录
  92.         /// </summary>
  93.         /// <param name="bbsrevert">bbsrevert实体对象</param>
  94.         /// <returns></returns>
  95.         public int Update(bbsrevert bbsrevert)
  96.         {
  97.             string sqlCommand = "bbsrevertUpdate";
  98.             SqlParameter[] param ={
  99. new SqlParameter("@br_id",SqlDbType.Int),
  100. new SqlParameter("@br_bbs_id",SqlDbType.Int),
  101. new SqlParameter("@br_revertcontent",SqlDbType.VarChar),
  102. new SqlParameter("@br_reverttime",SqlDbType.DateTime),
  103. new SqlParameter("@br_u_id",SqlDbType.Int)
  104. };
  105.             param[0].Value = bbsrevert.br_id;
  106.             param[1].Value = bbsrevert.br_bbs_id;
  107.             param[2].Value = bbsrevert.br_revertcontent;
  108.             param[3].Value = bbsrevert.br_reverttime;
  109.             param[4].Value = bbsrevert.br_u_id;
  110.             return SqlHelper.ExecuteNonQuery(Conn.SqlConn, CommandType.StoredProcedure, sqlCommand, param);
  111.         }
  112.         /// <summary>
  113.         /// 向数据表bbsrevert更新一条记录。带事务
  114.         /// </summary>
  115.         /// <param name="sp">事务对象</param>
  116.         /// <param name="bbsrevert">bbsrevert实体对象</param>
  117.         /// <returns></returns>
  118.         public int Update(SqlTransaction sp, bbsrevert bbsrevert)
  119.         {
  120.             string sqlCommand = "bbsrevertUpdate";
  121.             SqlParameter[] param ={
  122. new SqlParameter("@br_id",SqlDbType.Int),
  123. new SqlParameter("@br_bbs_id",SqlDbType.Int),
  124. new SqlParameter("@br_revertcontent",SqlDbType.VarChar),
  125. new SqlParameter("@br_reverttime",SqlDbType.DateTime),
  126. new SqlParameter("@br_u_id",SqlDbType.Int)
  127. };
  128.             param[0].Value = bbsrevert.br_id;
  129.             param[1].Value = bbsrevert.br_bbs_id;
  130.             param[2].Value = bbsrevert.br_revertcontent;
  131.             param[3].Value = bbsrevert.br_reverttime;
  132.             param[4].Value = bbsrevert.br_u_id;
  133.             return SqlHelper.ExecuteNonQuery(sp, CommandType.StoredProcedure, sqlCommand, param);
  134.         }
  135.         #endregion
  136.         #region 删除
  137.         /// <summary>
  138.         /// 删除数据表bbsrevert中的一条记录
  139.         /// </summary>
  140.         /// <param name="br_id">br_id</param>
  141.         /// <returns></returns>
  142.         public int Delete(int br_id)
  143.         {
  144.             string sqlCommand = "bbsrevertDelete";
  145.             SqlParameter[] param ={
  146. new SqlParameter("@br_id",SqlDbType.Int)
  147. };
  148.             param[0].Value = br_id;
  149.             return SqlHelper.ExecuteNonQuery(Conn.SqlConn, CommandType.StoredProcedure, sqlCommand, param);
  150.         }
  151.         /// <summary>
  152.         /// 删除数据表bbsrevert中的一条记录
  153.         /// </summary>
  154.         /// <param name="bbsrevert">bbsrevert实体对象</param>
  155.         /// <returns></returns>
  156.         public int Delete(bbsrevert bbsrevert)
  157.         {
  158.             string sqlCommand = "bbsrevertDelete";
  159.             SqlParameter[] param ={
  160. new SqlParameter("@br_id",SqlDbType.Int)
  161. };
  162.             param[0].Value = bbsrevert.br_id;
  163.             return SqlHelper.ExecuteNonQuery(Conn.SqlConn, CommandType.StoredProcedure, sqlCommand, param);
  164.         }
  165.         /// <summary>
  166.         /// 删除数据表bbsrevert中的一条记录,带事务
  167.         /// </summary>
  168.         /// <param name="sp">事务对象</param>
  169.         /// <param name="br_id">br_id</param>
  170.         /// <returns></returns>
  171.         public int Delete(SqlTransaction sp, int br_id)
  172.         {
  173.             string sqlCommand = "bbsrevertDelete";
  174.             SqlParameter[] param ={
  175. new SqlParameter("@br_id",SqlDbType.Int)
  176. };
  177.             param[0].Value = br_id;
  178.             return SqlHelper.ExecuteNonQuery(sp, CommandType.StoredProcedure, sqlCommand, param);
  179.         }
  180.         /// <summary>
  181.         /// 删除数据表bbsrevert中的一条记录,带事务
  182.         /// </summary>
  183.         /// <param name="sp">事务对象</param>
  184.         /// <param name="bbsrevert">bbsrevert实体对象</param>
  185.         /// <returns></returns>
  186.         public int Delete(SqlTransaction sp, bbsrevert bbsrevert)
  187.         {
  188.             string sqlCommand = "bbsrevertDelete";
  189.             SqlParameter[] param ={
  190. new SqlParameter("@br_id",SqlDbType.Int)
  191. };
  192.             param[0].Value = bbsrevert.br_id;
  193.             return SqlHelper.ExecuteNonQuery(sp, CommandType.StoredProcedure, sqlCommand, param);
  194.         }
  195.         #endregion
  196.         #region 实体对象
  197.         /// <summary>
  198.         /// 得到bbsrevert实体对象
  199.         /// </summary>
  200.         /// <param name="row">row</param>
  201.         /// <returns>bbsrevert实体对象</returns>
  202.         public bbsrevert Select(DataRow row)
  203.         {
  204.             bbsrevert obj = new bbsrevert();
  205.             if (row != null)
  206.             {
  207.                 obj.br_id = ((row["br_id"]) == DBNull.Value) ? 0 : Convert.ToInt32(row["br_id"]);
  208.                 obj.br_bbs_id = ((row["br_bbs_id"]) == DBNull.Value) ? 0 : Convert.ToInt32(row["br_bbs_id"]);
  209.                 obj.br_revertcontent = row["br_revertcontent"].ToString();
  210.                 obj.br_reverttime = ((row["br_reverttime"]) == DBNull.Value) ? DateTime.MinValue : Convert.ToDateTime(row["br_reverttime"]);
  211.                 obj.br_u_id = ((row["br_u_id"]) == DBNull.Value) ? 0 : Convert.ToInt32(row["br_u_id"]);
  212.             }
  213.             else
  214.             {
  215.                 return null;
  216.             }
  217.             return obj;
  218.         }
  219.         /// <summary>
  220.         /// 得到bbsrevert实体对象
  221.         /// </summary>
  222.         /// <param name="dr">dr</param>
  223.         /// <returns>bbsrevert实体对象</returns>
  224.         public bbsrevert Select(IDataReader dr)
  225.         {
  226.             bbsrevert obj = new bbsrevert();
  227.             obj.br_id = ((dr["br_id"]) == DBNull.Value) ? 0 : Convert.ToInt32(dr["br_id"]);
  228.             obj.br_bbs_id = ((dr["br_bbs_id"]) == DBNull.Value) ? 0 : Convert.ToInt32(dr["br_bbs_id"]);
  229.             obj.br_revertcontent = dr["br_revertcontent"].ToString();
  230.             obj.br_reverttime = ((dr["br_reverttime"]) == DBNull.Value) ? DateTime.MinValue : Convert.ToDateTime(dr["br_reverttime"]);
  231.             obj.br_u_id = ((dr["br_u_id"]) == DBNull.Value) ? 0 : Convert.ToInt32(dr["br_u_id"]);
  232.             return obj;
  233.         }
  234.         /// <summary>
  235.         /// 根据ID,返回一个bbsrevert实体对象
  236.         /// </summary>
  237.         /// <param name="br_id">br_id</param>
  238.         /// <returns>bbsrevert实体对象</returns>
  239.         public bbsrevert Select(int br_id)
  240.         {
  241.             return this.Select(br_id, false, false);
  242.         }
  243.         /// <summary>
  244.         /// 根据ID,返回一个bbsrevert实体对象
  245.         /// </summary>
  246.         /// <param name="br_id">br_id</param>
  247.         /// <param name="bParentTable">将bbsrevert对象设置与父表关联</param>
  248.         /// <param name="bChildrenTable">将bbsrevert对象设置与子表关联</param>
  249.         /// <returns>bbsrevert实体对象</returns>
  250.         public bbsrevert Select(int br_id, bool bParentTable, bool bChildrenTable)
  251.         {
  252.             bbsrevert obj = null;
  253.             SqlParameter[] param ={
  254. new SqlParameter("@br_id",SqlDbType.Int)
  255. };
  256.             param[0].Value = br_id;
  257.             string sqlCommand = "bbsrevertSelect";
  258.             using (SqlDataReader dr = SqlHelper.ExecuteReader(Conn.SqlConn, CommandType.StoredProcedure, sqlCommand, param))
  259.             {
  260.                 while (dr.Read())
  261.                 {
  262.                     obj = this.Select(dr);
  263.                 }
  264.             }
  265.             this.Select(obj, bParentTable, bChildrenTable);
  266.             return obj;
  267.         }
  268.         /// <summary>
  269.         /// 将bbsrevert实体对象设置与父表和子表关联
  270.         /// </summary>
  271.         /// <param name="obj">bbsrevert实体对象</param>
  272.         /// <param name="bParentTable">是/否设置与父表对象关联</param>
  273.         /// <param name="bChildrenTable">是/否设置与子表对象关联</param>
  274.         public void Select(bbsrevert obj, bool bParentTable, bool bChildrenTable)
  275.         {
  276.             //关联的主表
  277.             if (bParentTable)
  278.             {
  279.                 obj.users = usersBLL.Select(obj.br_u_id);
  280.                 obj.bbs = bbsBLL.Select(obj.br_bbs_id);
  281.             }
  282.             //关联的子表集合
  283.             if (bChildrenTable)
  284.             {
  285.             }
  286.         }
  287.         #endregion
  288.         #region 父表
  289.         /// <summary>
  290.         /// 设置实体对象(bbsrevert)的父表对象
  291.         /// </summary>
  292.         /// <param name="bbsrevert">实体对象</param>
  293.         public void users(bbsrevert bbsrevert)
  294.         {
  295.             bbsrevert.users = usersBLL.Select(bbsrevert.br_u_id);
  296.         }
  297.         /// <summary>
  298.         /// 设置实体对象(bbsrevert)的父表对象
  299.         /// </summary>
  300.         /// <param name="bbsrevert">实体对象</param>
  301.         public void bbs(bbsrevert bbsrevert)
  302.         {
  303.             bbsrevert.bbs = bbsBLL.Select(bbsrevert.br_bbs_id);
  304.         }
  305.         #endregion
  306.         #region 子表
  307.         #endregion
  308.         #region 查询
  309.         /// <summary>
  310.         /// 得到数据表bbsrevert所有记录
  311.         /// </summary>
  312.         /// <returns>结果集</returns>
  313.         public IList<bbsrevert> Select()
  314.         {
  315.             return this.Select(false, false);
  316.         }
  317.         /// <summary>
  318.         /// 得到数据表bbsrevert所有记录
  319.         /// </summary>
  320.         /// <param name="bParentTable">是/否设置与父表对象关联</param>
  321.         /// <param name="bChildrenTable">是/否设置与子表对象关联</param>
  322.         /// <returns>结果集</returns>
  323.         public IList<bbsrevert> Select(bool bParentTable, bool bChildrenTable)
  324.         {
  325.             IList<bbsrevert> list = new List<bbsrevert>();
  326.             string sqlCommand = "bbsrevertSelectAll";
  327.             using (SqlDataReader dr = SqlHelper.ExecuteReader(Conn.SqlConn, CommandType.StoredProcedure, sqlCommand))
  328.             {
  329.                 while (dr.Read())
  330.                 {
  331.                     list.Add(this.Select(dr));
  332.                 }
  333.             }
  334.             foreach (bbsrevert obj in list)
  335.             {
  336.                 this.Select(obj, bParentTable, bChildrenTable);
  337.             }
  338.             return list;
  339.         }
  340.         /// <summary>
  341.         /// 得到数据表bbsrevert满足查询条件的记录
  342.         /// </summary>
  343.         /// <param name="where">查询条件</param>
  344.         /// <returns>结果集</returns>
  345.         public IList<bbsrevert> Select(string where)
  346.         {
  347.             return this.Select(where, false, false);
  348.         }
  349.         /// <summary>
  350.         /// 得到数据表bbsrevert满足查询条件的记录
  351.         /// </summary>
  352.         /// <param name="where">查询条件</param>
  353.         /// <param name="bParentTable">是/否设置与父表对象关联</param>
  354.         /// <param name="bChildrenTable">是/否设置与子表对象关联</param>
  355.         /// <returns>结果集</returns>
  356.         public IList<bbsrevert> Select(string where, bool bParentTable, bool bChildrenTable)
  357.         {
  358.             IList<bbsrevert> list = new List<bbsrevert>();
  359.             SqlParameter[] param ={
  360. new SqlParameter("@where",SqlDbType.VarChar,8000)
  361. };
  362.             param[0].Value = where;
  363.             string sqlCommand = "bbsrevertSelectByParams";
  364.             using (SqlDataReader dr = SqlHelper.ExecuteReader(Conn.SqlConn, CommandType.StoredProcedure, sqlCommand, param))
  365.             {
  366.                 while (dr.Read())
  367.                 {
  368.                     list.Add(this.Select(dr));
  369.                 }
  370.             }
  371.             foreach (bbsrevert obj in list)
  372.             {
  373.                 this.Select(obj, bParentTable, bChildrenTable);
  374.             }
  375.             return list;
  376.         }
  377.         /// <summary>
  378.         /// 得到数据表ArticalInfo满足外键字段查询条件的记录
  379.         /// </summary>
  380.         /// <param name="foreignFieldName">外键字段名称</param>
  381.         /// <param name="foreignFieldValue">外键字段值</param>
  382.         /// <returns>结果集</returns>
  383.         public IList<bbsrevert> Select(string foreignFieldName, int foreignFieldValue)
  384.         {
  385.             return this.Select(foreignFieldName, foreignFieldValue, false, false);
  386.         }
  387.         /// <summary>
  388.         /// 得到数据表ArticalInfo满足外键字段查询条件的记录
  389.         /// </summary>
  390.         /// <param name="foreignFieldName">外键字段名称</param>
  391.         /// <param name="foreignFieldValue">外键字段值</param>
  392.         /// <param name="bParentTable">是/否设置与父表对象关联</param>
  393.         /// <param name="bChildrenTable">是/否设置与子表对象关联</param>
  394.         /// <returns>结果集</returns>
  395.         public IList<bbsrevert> Select(string foreignFieldName, int foreignFieldValue, bool bParentTable, bool bChildrenTable)
  396.         {
  397.             return this.Select(string.Format("{0}='{1}'", foreignFieldName, foreignFieldValue), bParentTable, bChildrenTable);
  398.         }
  399.         /// <summary>
  400.         /// 得到数据表bbsrevert满足查询条件的记录数
  401.         /// </summary>
  402.         /// <param name="where">查询条件</param>
  403.         /// <param name="recordCount">记录数</param>
  404.         public void Select(string where, out int recordCount)
  405.         {
  406.             string sqlCommand = "bbsrevertCountByWhere";
  407.             SqlParameter[] param ={
  408. new SqlParameter("@where",SqlDbType.VarChar,8000),
  409. new SqlParameter("@recordCount",SqlDbType.Int)
  410. };
  411.             param[0].Value = where;
  412.             param[1].Direction = ParameterDirection.Output;
  413.             SqlHelper.ExecuteNonQuery(Conn.SqlConn, CommandType.StoredProcedure, sqlCommand, param);
  414.             recordCount = Convert.ToInt32(param[1].Value);
  415.         }
  416.         /// <summary>
  417.         /// 得到数据表bbsrevert满足查询条件的分页记录
  418.         /// </summary>
  419.         /// <param name="pageSize">每页显示记录数</param>
  420.         /// <param name="pageIndex">当前显示第几页</param>
  421.         /// <param name="where">查询条件</param>
  422.         /// <returns>结果集</returns>
  423.         public IList<bbsrevert> Select(int pageSize, int pageIndex, string where)
  424.         {
  425.             return this.Select(pageSize, pageIndex, where, false, false);
  426.         }
  427.         /// <summary>
  428.         /// 得到数据表bbsrevert满足查询条件的分页记录
  429.         /// </summary>
  430.         /// <param name="pageSize">每页显示记录数</param>
  431.         /// <param name="pageIndex">当前显示第几页</param>
  432.         /// <param name="where">查询条件</param>
  433.         /// <param name="bParentTable">是/否设置与父表对象关联</param>
  434.         /// <param name="bChildrenTable">是/否设置与子表对象关联</param>
  435.         /// <returns>结果集</returns>
  436.         public IList<bbsrevert> Select(int pageSize, int pageIndex, string where, bool bParentTable, bool bChildrenTable)
  437.         {
  438.             IList<bbsrevert> list = new List<bbsrevert>();
  439.             string sqlCommand = "bbsrevertSelectByPagerParams";
  440.             SqlParameter[] param ={
  441. new SqlParameter("@pageSize",SqlDbType.Int),
  442. new SqlParameter("@pageIndex",SqlDbType.Int),
  443. new SqlParameter("@where",SqlDbType.VarChar,8000)
  444. };
  445.             param[0].Value = pageSize;
  446.             param[1].Value = pageIndex;
  447.             param[2].Value = where;
  448.             using (SqlDataReader dr = SqlHelper.ExecuteReader(Conn.SqlConn, CommandType.StoredProcedure, sqlCommand, param))
  449.             {
  450.                 while (dr.Read())
  451.                 {
  452.                     list.Add(this.Select(dr));
  453.                 }
  454.             }
  455.             foreach (bbsrevert obj in list)
  456.             {
  457.                 this.Select(obj, bParentTable, bChildrenTable);
  458.             }
  459.             return list;
  460.         }
  461.         /// <summary>
  462.         /// 得到数据表bbsrevert满足查询条件记录
  463.         /// </summary>
  464.         /// <param name="commandType">命令类型</param>
  465.         /// <param name="sqlCommand">SQL命令</param>
  466.         /// <param name="SqlParameter[]">命令参数数组</param>
  467.         /// <returns>结果集</returns>
  468.         public IList<bbsrevert> Select(CommandType commandType, string sqlCommand, params SqlParameter[] param)
  469.         {
  470.             return this.Select(false, false, commandType, sqlCommand, param);
  471.         }
  472.         /// <summary>
  473.         /// 得到数据表bbsrevert满足查询条件记录
  474.         /// </summary>
  475.         /// <param name="bParentTable">是/否设置与父表对象关联</param>
  476.         /// <param name="bChildrenTable">是/否设置与子表对象关联</param>
  477.         /// <param name="commandType">命令类型</param>
  478.         /// <param name="sqlCommand">SQL命令</param>
  479.         /// <param name="SqlParameter[]">命令参数数组</param>
  480.         /// <returns>结果集</returns>
  481.         public IList<bbsrevert> Select(bool bParentTable, bool bChildrenTable, CommandType commandType, string sqlCommand, params SqlParameter[] param)
  482.         {
  483.             IList<bbsrevert> list = new List<bbsrevert>();
  484.             using (SqlDataReader dr = SqlHelper.ExecuteReader(Conn.SqlConn, commandType, sqlCommand, param))
  485.             {
  486.                 while (dr.Read())
  487.                 {
  488.                     list.Add(this.Select(dr));
  489.                 }
  490.             }
  491.             foreach (bbsrevert obj in list)
  492.             {
  493.                 this.Select(obj, bParentTable, bChildrenTable);
  494.             }
  495.             return list;
  496.         }
  497.         /// <summary>
  498.         /// 根据主键检测是否存在该条记录
  499.         /// </summary>
  500.         /// <param name="br_id">br_id</param>
  501.         /// <returns>存在/不存在</returns>
  502.         public bool Exists(int br_id)
  503.         {
  504.             SqlParameter[] param ={
  505.                                  new SqlParameter("@br_id",SqlDbType.Int)
  506.                                  };
  507.             param[0].Value = br_id;
  508.             string sqlCommand = "bbsrevertIsExist";
  509.             int a = Convert.ToInt32(SqlHelper.ExecuteScalar(Conn.SqlConn, CommandType.StoredProcedure, sqlCommand, param));
  510.             if (a > 0)
  511.             {
  512.                 return true;
  513.             }
  514.             else
  515.             {
  516.                 return false;
  517.             }
  518.         }
  519.         #endregion
  520.         #endregion
  521.     }
  522. }