SqlClient/doc/samples/SqlParameter_SqlParameter4.cs

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>