You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Expressions/Translation/ColumnDeclaration.cs

28 lines
732 B

2 years ago
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; }
}