Search Results for

    Show / Hide Table of Contents

    Class IvExpressionParser<TElement, TQuery, TFilter>

    Inheritance
    System.Object
    ExpressionVisitor
    IvExpressionParser<TElement, TQuery, TFilter>
    CachedIvExpressionParser<T, TQuery, TFilter>
    CachedIvExpressionParser<T, TQuery, TFilter>
    CategoryExpressionParser
    CategoryExpressionParser
    GlobalRoleIdentityExpressionParser
    GlobalRoleIdentityExpressionParser
    MediaFormatBaseExpressionParser<T>
    MediaFormatBaseExpressionParser<T>
    MetadataDefinitionExpressionParser
    MetadataDefinitionExpressionParser
    MetadataExpressionParser
    MetadataExpressionParser
    VaultExpressionParser
    VaultExpressionParser
    VaultStatisticsExpressionParser
    VaultStatisticsExpressionParser
    Implements
    IIvExpressionParser<TQuery>
    IIvExpressionParser
    Inherited Members
    ExpressionVisitor.Visit(Expression)
    ExpressionVisitor.VisitBinding(MemberBinding)
    ExpressionVisitor.VisitBindingList(ReadOnlyCollection<MemberBinding>)
    ExpressionVisitor.VisitConditional(ConditionalExpression)
    ExpressionVisitor.VisitConstant(ConstantExpression)
    ExpressionVisitor.VisitElementInitializer(ElementInit)
    ExpressionVisitor.VisitElementInitializerList(ReadOnlyCollection<ElementInit>)
    ExpressionVisitor.VisitExpressionList(ReadOnlyCollection<Expression>)
    ExpressionVisitor.VisitExpressionListWithCallback(ReadOnlyCollection<Expression>, Action<Int32, Int32>, Func<Int32, Int32, Boolean>)
    ExpressionVisitor.VisitInvocation(InvocationExpression)
    ExpressionVisitor.VisitLambda(LambdaExpression)
    ExpressionVisitor.VisitListInit(ListInitExpression)
    ExpressionVisitor.VisitMemberAssignment(MemberAssignment)
    ExpressionVisitor.VisitMemberInit(MemberInitExpression)
    ExpressionVisitor.VisitMemberListBinding(MemberListBinding)
    ExpressionVisitor.VisitMemberMemberBinding(MemberMemberBinding)
    ExpressionVisitor.VisitNew(NewExpression)
    ExpressionVisitor.VisitNewArray(NewArrayExpression)
    ExpressionVisitor.VisitParameter(ParameterExpression)
    ExpressionVisitor.VisitTypeIs(TypeBinaryExpression)
    ExpressionVisitor.Path
    Namespace: ImageVault.Client.Query.Parser
    Assembly: ImageVault.Client.dll
    Syntax
    public abstract class IvExpressionParser<TElement, TQuery, TFilter> : ExpressionVisitor, IIvExpressionParser<TQuery>, IIvExpressionParser where TQuery : IIVQuery<TFilter>, new()
        where TFilter : IIVFilter
    Type Parameters
    Name Description
    TElement
    TQuery
    TFilter

    Constructors

    IvExpressionParser()

    Initializes a new instance of the IvExpressionParser<TElement, TQuery> class.

    Declaration
    protected IvExpressionParser()

    Properties

    Client

    Get/Sets the Client of the IvExpressionParser

    Declaration
    public IClient Client { get; set; }
    Property Value
    Type Description
    IClient

    ElementType

    Gets the ElementType of the IvExpressionParser

    Declaration
    protected Type ElementType { get; }
    Property Value
    Type Description
    System.Type

    Query

    Get/Sets the Query of the IvExpressionParser

    Declaration
    public TQuery Query { get; }
    Property Value
    Type Description
    TQuery

    Methods

    AddMapping<TKey>(IvQueryMapping, Expression<Func<TElement, TKey>>, Func<Expression, IList<Expression>, Expression>)

    Adds a mapping to the parser

    Declaration
    protected void AddMapping<TKey>(IvQueryMapping mapping, Expression<Func<TElement, TKey>> selector, Func<Expression, IList<Expression>, Expression> action)
    Parameters
    Type Name Description
    IvQueryMapping mapping

    The IvQueryMapping type to add

    System.Linq.Expressions.Expression<System.Func<TElement, TKey>> selector

    The expression that is used to identitfy the source mapping

    System.Func<System.Linq.Expressions.Expression, System.Collections.Generic.IList<System.Linq.Expressions.Expression>, System.Linq.Expressions.Expression> action

    The action to execute if the source mapping is encountered

    Type Parameters
    Name Description
    TKey
    Exceptions
    Type Condition
    System.ApplicationException

    If a mapping for a specific mapping and selector already has been added.

    CheckIfBinaryExpressionIsValid(ExpressionType)

    Checks if the supplied binary expression is valid or not.

    Declaration
    protected virtual bool CheckIfBinaryExpressionIsValid(ExpressionType type)
    Parameters
    Type Name Description
    System.Linq.Expressions.ExpressionType type
    Returns
    Type Description
    System.Boolean

    GetMappings(IvQueryMapping)

    Declaration
    protected IEnumerable<KeyValuePair<string, Func<Expression, IList<Expression>, Expression>>> GetMappings(IvQueryMapping mapping)
    Parameters
    Type Name Description
    IvQueryMapping mapping
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Func<System.Linq.Expressions.Expression, System.Collections.Generic.IList<System.Linq.Expressions.Expression>, System.Linq.Expressions.Expression>>>

    GetResultFromServer(Type)

    Gets the result from the server

    Declaration
    public abstract IQueryable GetResultFromServer(Type type)
    Parameters
    Type Name Description
    System.Type type

    The System.Type of items for the result to get

    Returns
    Type Description
    System.Linq.IQueryable

    An System.Linq.IQueryable containing the result

    IsSpecificMemberExpression<TKey>(Expression, Expression<Func<TElement, TKey>>)

    Checks if a specific expression is a specific member expression matching a specific property/field/method

    Declaration
    protected bool IsSpecificMemberExpression<TKey>(Expression exp, Expression<Func<TElement, TKey>> selector)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression exp

    The System.Linq.Expressions.Expression to check

    System.Linq.Expressions.Expression<System.Func<TElement, TKey>> selector

    The System.Linq.Expressions.Expression<> pointing out the member

    Returns
    Type Description
    System.Boolean

    True if specific member is expression, otherwise false.

    Type Parameters
    Name Description
    TKey

    The type of return value of the member

    VisitBinary(BinaryExpression)

    Declaration
    protected override Expression VisitBinary(BinaryExpression be)
    Parameters
    Type Name Description
    System.Linq.Expressions.BinaryExpression be
    Returns
    Type Description
    System.Linq.Expressions.Expression
    Overrides
    ExpressionVisitor.VisitBinary(BinaryExpression)

    VisitMemberAccess(MemberExpression)

    Declaration
    protected override Expression VisitMemberAccess(MemberExpression m)
    Parameters
    Type Name Description
    System.Linq.Expressions.MemberExpression m
    Returns
    Type Description
    System.Linq.Expressions.Expression
    Overrides
    ExpressionVisitor.VisitMemberAccess(MemberExpression)

    VisitMethodCall(MethodCallExpression)

    Declaration
    protected override Expression VisitMethodCall(MethodCallExpression m)
    Parameters
    Type Name Description
    System.Linq.Expressions.MethodCallExpression m
    Returns
    Type Description
    System.Linq.Expressions.Expression
    Overrides
    ExpressionVisitor.VisitMethodCall(MethodCallExpression)

    VisitUnary(UnaryExpression)

    Declaration
    protected override Expression VisitUnary(UnaryExpression u)
    Parameters
    Type Name Description
    System.Linq.Expressions.UnaryExpression u
    Returns
    Type Description
    System.Linq.Expressions.Expression
    Overrides
    ExpressionVisitor.VisitUnary(UnaryExpression)

    Implements

    IIvExpressionParser<T>
    IIvExpressionParser

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022