Show / Hide Table of Contents

    Class ColumnsExpression

    Expression which represent projection part of sql select.

    Inheritance
    System.Object
    System.Linq.Expressions.Expression
    QueryExpression
    ColumnsExpression
    Inherited Members
    QueryExpression.NodeType
    QueryExpression.Type
    Namespace: Kros.KORM.Query.Expressions
    Assembly: Kros.KORM.dll
    Syntax
    public class ColumnsExpression : QueryExpression

    Constructors

    ColumnsExpression(String)

    Initializes a new instance of the ColumnsExpression class.

    Declaration
    public ColumnsExpression(string columns)
    Parameters
    Type Name Description
    System.String columns

    The columns part of sql.

    Remarks

    Columns are separate by ,

    ColumnsExpression(String[])

    Initializes a new instance of the ColumnsExpression class.

    Declaration
    public ColumnsExpression(params string[] columns)
    Parameters
    Type Name Description
    System.String[] columns

    The columns.

    Properties

    ColumnsPart

    Gets the columns part.

    Declaration
    public string ColumnsPart { get; }
    Property Value
    Type Description
    System.String

    Methods

    Accept(ExpressionVisitor)

    Dispatches to the specific visit method for this node type. For example, System.Linq.Expressions.MethodCallExpression calls the System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(System.Linq.Expressions.MethodCallExpression).

    Declaration
    protected override Expression Accept(ExpressionVisitor visitor)
    Parameters
    Type Name Description
    System.Linq.Expressions.ExpressionVisitor visitor

    The visitor to visit this node with.

    Returns
    Type Description
    System.Linq.Expressions.Expression

    The result of visiting this node.

    Overrides
    System.Linq.Expressions.Expression.Accept(System.Linq.Expressions.ExpressionVisitor)

    Create<T, TResult>(Func<T, TResult>, TableInfo)

    Creates the ColumnsExpression by selector.

    Declaration
    public static ColumnsExpression Create<T, TResult>(Func<T, TResult> selector, TableInfo tableInfo)
    Parameters
    Type Name Description
    System.Func<T, TResult> selector

    The selector.

    TableInfo tableInfo

    The table information.

    Returns
    Type Description
    ColumnsExpression

    ColumnsExpression

    Type Parameters
    Name Description
    T

    Type of model class.

    TResult

    The type of the result.

    See Also

    ISqlExpressionVisitor
    Back to top KROS a.s.