Skip to main content

sqlextras-class

Represents different extra clauses of SELECT query.

public class Korzh.EasyQuery.Db.SqlExtras

Assembly: Korzh.EasyQuery.Db.dll

Constructors

NameTypeDescription
SqlExtras()void

Properties

NameTypeDescription
LazyJoinsboolGets or sets a value indicating whether "lazy outer joins" scheme is used. If it is trueKorzh.EasyQuery.Db.SqlQueryBuilder will "delay" outer joins and apply them only when all inner joins have been made. Such behaviour will allow to get more records in result set.
LimitClausestringGets or sets the content of LIMIT clause in result SQL statement
SelectDistinctboolGets or sets a value indicating whether SELECT clause must contain DISTINCT option.
SelectTopstringGets or sets the content of TOP command in SELECT clause.

Methods

NameTypeDescription
ReadFromJsonAsync(JsonReader reader, CancellationToken ct = null)TaskRead the SQL extras from JSON (asynchronous way).
SetClauseByName(string propName, object propValue)voidSets one property according to its name and value.
WriteToJsonAsync(JsonWriter writer, CancellationToken ct = null)TaskWrites the content of SqlExtras object to JSON (asynchronous way).