33 lines
894 B
C#
33 lines
894 B
C#
using MySql.Data.MySqlClient;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace _20230724_MBJC_upperpc.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;
|
|
}
|
|
}
|
|
}
|