Skip to content

TableLink.Condition class

Represents linking condition

public class Korzh.EasyQuery.Db.TableLink.Condition

Package: Korzh.EasyQuery.Db (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.Db.dll

NameTypeDescription
Condition(TableLink link)voidInitializes a new instance of the Korzh.EasyQuery.Db.TableLink.Condition class.
Condition(TableLink link, Condition cond)voidInitializes a new instance of the Korzh.EasyQuery.Db.TableLink.Condition class.
NameTypeDescription
CondTypeLinkCondTypeGets or sets the type of condition (field to field or field to expression).
CustomExprstringGets or sets the custom expression of condition (if ‘CustomExpr’ condition type is used)
Expr1stringGets or sets the left side of linking condition.
Expr2stringGets or sets the right side of linking condition.
InfoIDictionary<string, object>Stores additional information associated with this condition
OperatorstringGets or sets the condition operator.
Table1TableGets the first (left) table taken part in link.
Table2TableGets the second (right) table taken part in link.
NameTypeDescription
GetSqlExpr(SqlFormats formats)stringGets the SQL expression that represents the condition.
ToString()stringReturns a that represents the current .
NameTypeDescription
LinkCondTypeToStr(LinkCondType type)stringConvert Korzh.EasyQuery.Db.LinkCondType value to its text representation
StrToLinkCondType(string s)LinkCondTypeAllows to get Korzh.EasyQuery.Db.LinkCondType by its text representation