25 строки
561 B
C#
25 строки
561 B
C#
using System;
|
|
using System.Data;
|
|
// <Snippet1>
|
|
using Microsoft.Data.SqlClient;
|
|
using System.Xml;
|
|
using System.Data.Common;
|
|
using System.Windows.Forms;
|
|
|
|
public class Form1 : Form
|
|
{
|
|
protected DataSet DataSet1;
|
|
protected DataGrid dataGrid1;
|
|
protected SqlCommand command;
|
|
protected SqlParameter param;
|
|
|
|
public void SearchSqlParams()
|
|
{
|
|
// ...
|
|
// create SqlCommand command and SqlParameter param
|
|
// ...
|
|
if (command.Parameters.Contains(param))
|
|
command.Parameters.Remove(param);
|
|
}
|
|
}
|
|
// </Snippet1> |