📄 setparamscollection.cs
字号:
using System;
using System.Data;
using System.Data.SqlClient;
namespace {namespace}.DataAS
{
/// <summary>
/// 检索参数集合
/// </summary>
public class SetParamsCollection : System.Collections.ArrayList
{
public SetParamsCollection() { }
/// <summary>
/// 添加检索参数
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
public int Add(SetParameter value)
{
return base.Add(value);
}
/// <summary>
/// 移除检索参数
/// </summary>
/// <param name="obj"></param>
public void Remove(SetParameter obj)
{
base.Remove(obj);
}
/// <summary>
/// 获取检索参数对象
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public SetParameter this[int index]
{
get
{
return (SetParameter)base[index];
}
set
{
base[index] = value;
}
}
public override string ToString()
{
string result = "";
if (Count > 0)
result = " SET ";
for (int i = 0; i < Count; i++)
{
result += this[i].ToString();
if (i < Count - 1)
result += ",";
}
return result;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -