SafeCriteriaValidator class

namespace: Serenity.Data   assemblySerenity.Net.Data

Validates a criteria for allowed field names, operators and SQL injection safety

public class SafeCriteriaValidator : BaseCriteriaVisitor

Public Members

name description
SafeCriteriaValidator() The default constructor.
Validate(…) Validates the specified criteria.

Protected Members

name description
override VisitCriteria(…) Visits the criteria returning potentially reworked version.
override VisitParam(…) Visits the parameter criteria. Parameter criteria is just a parameter name.

See Also