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

Constructors

Name Type Description
Condition(TableLink link) void Initializes a new instance of the Korzh.EasyQuery.Db.TableLink.Condition class.
Condition(TableLink link, Condition cond) void Initializes a new instance of the Korzh.EasyQuery.Db.TableLink.Condition class.

Properties

Name Type Description
CondType LinkCondType Gets or sets the type of condition (field to field or field to expression).
CustomExpr string Gets or sets the custom expression of condition (if 'CustomExpr' condition type is used)
Expr1 string Gets or sets the left side of linking condition.
Expr2 string Gets or sets the right side of linking condition.
Info IDictionary<string, object> Stores additional information associated with this condition
Operator string Gets or sets the condition operator.
Table1 Table Gets the first (left) table taken part in link.
Table2 Table Gets the second (right) table taken part in link.

Methods

Name Type Description
GetSqlExpr(SqlFormats formats) string Gets the SQL expression that represents the condition.
ToString() string Returns a that represents the current .

Static Methods

Name Type Description
LinkCondTypeToStr(LinkCondType type) string Convert Korzh.EasyQuery.Db.LinkCondType value to its text representation
StrToLinkCondType(string s) LinkCondType Allows to get Korzh.EasyQuery.Db.LinkCondType by its text representation