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/BatchExpression.cs

23 lines
672 B

2 years ago
using System.Linq.Expressions;
namespace Connected.Expressions;
public sealed class BatchExpression : Expression
{
public BatchExpression(Expression input, LambdaExpression operation, Expression batchSize, Expression stream)
{
Input = input;
Operation = operation;
BatchSize = batchSize;
Stream = stream;
Type = typeof(IEnumerable<>).MakeGenericType(operation.Body.Type);
}
public override Type Type { get; }
public Expression Input { get; }
public LambdaExpression Operation { get; }
public Expression BatchSize { get; }
public Expression Stream { get; }
public override ExpressionType NodeType => (ExpressionType)DatabaseExpressionType.Batch;
}