28 lines
732 B
C#
28 lines
732 B
C#
using Connected.Expressions.Languages;
|
|
using System.Linq.Expressions;
|
|
|
|
namespace Connected.Expressions.Translation;
|
|
|
|
public sealed class ColumnDeclaration
|
|
{
|
|
public ColumnDeclaration(string name, Expression expression, DataType dataType)
|
|
{
|
|
if (name is null)
|
|
throw new ArgumentNullException(nameof(name));
|
|
|
|
if (expression is null)
|
|
throw new ArgumentNullException(nameof(expression));
|
|
|
|
if (dataType is null)
|
|
throw new ArgumentNullException(nameof(dataType));
|
|
|
|
Name = name;
|
|
Expression = expression;
|
|
DataType = dataType;
|
|
}
|
|
|
|
public string Name { get; }
|
|
public Expression Expression { get; }
|
|
public DataType DataType { get; }
|
|
}
|