DbEntityLink class

Represents link between two entities

public class Korzh.EasyQuery.Db.DbEntityLink

Properties

Type Name Description
String ConditionExpr Gets or sets the expression of link condition. This expression will be used if Korzh.EasyQuery.Db.DbEntityLink.Conditions list is empty.
ConditionList Conditions Gets list of linking conditions.
Entity Entity1 Gets or sets the first entity of the link.
Entity Entity2 Gets or sets the second entity of the link.
TableLinkType LnkType Gets or sets the type of the link (inner, left, right or full).

Methods

Type Name Description
Condition AddCondition(LinkCondType condType, String expr1, String expr2, String operation) Adds the link condition by two expressions and operation.
String GetSqlExpr(DbQueryFormats formats) Gets the SQL expression of the link
String ToString() Returns a that represents the current .

Static Methods

Type Name Description
TableLinkType StrToLinkType(String s) Converts text to TableLink.LinkType value.