Explorar o código

添加SQL类型

章政 %!s(int64=8) %!d(string=hai) anos
pai
achega
6c4af5bef8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      UAS-MES/DataOperate/DataHelper.cs

+ 1 - 0
UAS-MES/DataOperate/DataHelper.cs

@@ -495,6 +495,7 @@ namespace UAS_MES.DataOperate
             command.Parameters.Clear();
             string sql = "delete from " + TableName + " where " + ID + " =:DeleteID";
             command.CommandText = sql;
+            command.CommandType = CommandType.Text;
             Reconnect(command);
             command.ArrayBindCount = DeleteID.Length;
             command.Parameters.Add(new OracleParameter("DeleteID", OracleDbType.Long, DeleteID, ParameterDirection.Input));