Skip to content

CriteriaFieldExpressionReplacer class

namespace: Serenity.Data   assemblySerenity.Net.Services

Converts field names in a criteria to their corresponding SQL field expressions.

public class CriteriaFieldExpressionReplacer : SafeCriteriaValidator
parameter description
row The row instance
permissions Permission service
lookupAccessMode Use lookup access mode. In the lookup access mode only the lookup fields can be used in the filter. Default is false.
dialect Optional dialect
toCriteria Optional field to criteria converter

Public Members

name description
CriteriaFieldExpressionReplacer(…) Converts field names in a criteria to their corresponding SQL field expressions.
Process(…) Visits the criteria for conversion and returns a processed criteria containing replaced field expressions.

Protected Members

name description
Dialect { get; } Gets the dialect passed in or the default dialect.
Row { get; } Gets the row instance.
virtual CanFilterField(…) Virtual method to check if a Field can be filtered.
virtual FindField(…) Finds a field by its property name or field name
virtual ToCriteria(…) Converts field to criteria
override VisitBinary(…)
override VisitCriteria(…)

Exceptions

exception condition
ArgumentNullException row or permissions is null.

Remarks

Initializes a new instance of the class.

See Also