using Connected.Expressions.Collections; using System.Collections.ObjectModel; using System.Linq.Expressions; namespace Connected.Expressions; public sealed class InExpression : SubqueryExpression { public InExpression(Expression expression, SelectExpression select) : base(DatabaseExpressionType.In, typeof(bool), select) { Expression = expression; } public InExpression(Expression expression, IEnumerable values) : base(DatabaseExpressionType.In, typeof(bool), null) { Expression = expression; Values = values.ToReadOnly(); } public Expression Expression { get; } public ReadOnlyCollection? Values { get; } }