Table of Contents

Class ExpressionValidator

Namespace
DataStax.AstraDB.DataApi.Utils
Assembly
DataStax.AstraDB.DataApi.dll

Validates LINQ expressions used in filter and sort builders.

public class ExpressionValidator
Inheritance
ExpressionValidator
Inherited Members

Methods

DoesPropertyHaveAttribute<T, TField, TAttribute>(Expression<Func<T, TField>>)

Determines whether the property targeted by the given expression has the specified attribute applied to it.

public static bool DoesPropertyHaveAttribute<T, TField, TAttribute>(Expression<Func<T, TField>> expression) where TAttribute : Attribute

Parameters

expression Expression<Func<T, TField>>

Returns

bool

Type Parameters

T
TField
TAttribute