21 строка
490 B
C#
21 строка
490 B
C#
using System;
|
|
using System.Data;
|
|
// <Snippet1>
|
|
using Microsoft.Data.SqlClient;
|
|
|
|
class Program
|
|
{
|
|
private static void AddSqlParameter(SqlCommand command,
|
|
string paramValue)
|
|
{
|
|
SqlParameter parameter = new SqlParameter("@Description",
|
|
SqlDbType.VarChar, 88);
|
|
parameter.IsNullable = true;
|
|
parameter.Direction = ParameterDirection.Output;
|
|
parameter.Value = paramValue;
|
|
|
|
command.Parameters.Add(parameter);
|
|
}
|
|
}
|
|
// </Snippet1>
|