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/Expressions/NamedValueExpression.cs

25 lines
684 B

2 years ago
using Connected.Expressions.Languages;
using System.Linq.Expressions;
namespace Connected.Expressions;
public sealed class NamedValueExpression : DatabaseExpression
{
public NamedValueExpression(string name, DataType dataType, Expression value)
: base(DatabaseExpressionType.NamedValue, value.Type)
{
if (name is null)
throw new ArgumentNullException(nameof(name));
if (value is null)
throw new ArgumentNullException(nameof(value));
Name = name;
DataType = dataType;
Value = value;
}
public string Name { get; }
public DataType DataType { get; }
public Expression Value { get; }
}