20240301_JSEQ_upperpc/JiangsuEarthquakeJM/JiangsuEarthquake/DataAccess/CmdInfo.cs
春风过客 d7f51483a7 新增功能:
1 将地震仪数据读取功能单独成一个页面;
2024-05-13 18:51:05 +08:00

33 lines
889 B
C#

using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JiangsuEarthquake.DataAccess
{
//封装事务中的每个操作类,包括命令名称,类型,参数
public class CmdInfo
{
public string CommandText;//sql或存储过程名称
public MySqlParameter[] Parameters;//参数列表
public int CmdType;//是存储过程还是T-SQL语句
public CmdInfo()
{ }
public CmdInfo(string comText, int cmdType)
{
this.CommandText = comText;
this.CmdType = cmdType;
}
public CmdInfo(string commandText, MySqlParameter[] parameters, int cmdType)
{
CommandText = commandText;
Parameters = parameters;
CmdType = cmdType;
}
}
}