Microsoft.SqlServer.TransactSql.ScriptDom by Microsoft

<PackageReference Include="Microsoft.SqlServer.TransactSql.ScriptDom" Version="161.8910.0" />

.NET API 5,154,736 bytes

 DeclareVariableElement

This class represents a single declaration in the body of DeclareVariableStatement.
public DataTypeReference DataType { get; set; }

The data type of the variable. Type table is invalid.

The nullable constraint, optional can be null.

public ScalarExpression Value { get; set; }

Initial variable value specified in declaration.

public Identifier VariableName { get; set; }

The name of the variable. This includes the @ at the beginning.