Esempio n. 1
0
 /// <summary>
 /// 带Out或Output的无返回执行
 /// </summary>
 /// <param name="commandText"></param>
 /// <param name="outParameters"></param>
 /// <param name="commandParameters"></param>
 /// <param name="commandType"></param>
 /// <param name="transaction"></param>
 /// <returns></returns>
 public int ExecuteNonQuery(string commandText, out Dictionary <string, object> outParameters, IDataParameter[] commandParameters,
                            CommandType commandType = CommandType.StoredProcedure, IDbTransaction transaction = null)
 {
     return(MSSQLDBServer.ExecuteNonQuery(Connectstring, commandText, out outParameters, commandParameters, commandType, transaction));
 }
Esempio n. 2
0
 /// <summary>
 /// 返回受影响的行数
 /// </summary>
 /// <param name="commandText"></param>
 /// <param name="commandParameters"></param>
 /// <param name="commandType"></param>
 /// <param name="transaction"></param>
 /// <returns></returns>
 public int ExecuteNonQuery(string commandText, IDataParameter[] commandParameters = null, CommandType commandType = CommandType.Text,
                            IDbTransaction transaction = null)
 {
     return(MSSQLDBServer.ExecuteNonQuery(Connectstring, commandText, commandParameters, commandType, transaction));
 }