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.
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
|
|
|
|
namespace Connected.Expressions.Translation;
|
|
|
|
|
|
|
|
|
|
internal sealed class ProjectedColumns
|
|
|
|
|
{
|
|
|
|
|
private readonly Expression _projector;
|
|
|
|
|
private readonly ReadOnlyCollection<ColumnDeclaration> _columns;
|
|
|
|
|
|
|
|
|
|
public ProjectedColumns(Expression projector, ReadOnlyCollection<ColumnDeclaration> columns)
|
|
|
|
|
{
|
|
|
|
|
_projector = projector;
|
|
|
|
|
_columns = columns;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Expression Projector => _projector;
|
|
|
|
|
public ReadOnlyCollection<ColumnDeclaration> Columns => _columns;
|
|
|
|
|
|
|
|
|
|
}
|