Table of Contents

Class DapperExtensionsQueryOptions<T>

Namespace
Savvyio.Extensions.DapperExtensions
Assembly
Savvyio.Extensions.DapperExtensions.dll

Specifies options that is related to DapperExtensionsDataStore<T>.

public class DapperExtensionsQueryOptions<T> : AsyncOptions, IAsyncOptions, IParameterObject

Type Parameters

T
Inheritance
DapperExtensionsQueryOptions<T>
Implements
Inherited Members

Constructors

DapperExtensionsQueryOptions()

Initializes a new instance of the DapperExtensionsQueryOptions<T> class.

public DapperExtensionsQueryOptions()

Remarks

The following table shows the initial property values for an instance of DapperExtensionsQueryOptions<T>.

PropertyInitial Value
Predicatenull
OpDapperExtensions.Predicate.Operator.Eq
Valuenull
Notfalse
UseColumnPrefixtrue
FunctionDapperExtensions.Predicate.DatabaseFunction.None
FunctionParametersnull
CancellationTokendefault

Properties

Function

public DatabaseFunction Function { get; set; }

Property Value

DatabaseFunction

The database function of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).

FunctionParameters

public string FunctionParameters { get; set; }

Property Value

string

The parameters to the Function of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).

Not

Gets or sets a value that inverts the comparision operator of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).

public bool Not { get; set; }

Property Value

bool

true to invert the value of Op; otherwise, false.

Op

public Operator Op { get; set; }

Property Value

Operator

The comparison operator of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).

Predicate

public Expression<Func<T, object>> Predicate { get; set; }

Property Value

Expression<Func<T, object>>

The predicate of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string)..

UseColumnPrefix

Gets or sets a value indicating whether generated SQL should have column prefix of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).

public bool UseColumnPrefix { get; set; }

Property Value

bool

true if to include column prefix on generated SQL; otherwise, false.

Value

public object Value { get; set; }

Property Value

object

The value of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).

See Also