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>.
| Property | Initial Value |
|---|---|
| Predicate | null |
| Op | DapperExtensions.Predicate.Operator.Eq |
| Value | null |
| Not | false |
| UseColumnPrefix | true |
| Function | DapperExtensions.Predicate.DatabaseFunction.None |
| FunctionParameters | null |
| CancellationToken | default |
Properties
Function
Gets or sets the database function of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).
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
Gets or sets the parameters to the Function of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).
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
Op
Gets or sets the comparison operator of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).
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
Gets or sets the predicate of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).
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
trueif to include column prefix on generated SQL; otherwise,false.
Value
Gets or sets the value of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).
public object Value { get; set; }
Property Value
- object
The value of the Field<T>(Expression<Func<T, object>>, Operator, object, bool, bool, DatabaseFunction, string).