Skip to content

ExpressionAttribute constructor (1 of 2)

Specifies SQL expression this property corresponds to. You may use brackets ([]) to escape identifiers. Brackets will be converted to database specific quotes.

public ExpressionAttribute(string value)
parameter description
value An SQL expression like (T0.Firstname + ' ' + T0.LastName)

Remarks

Specifies SQL expression this property corresponds to. Multiple attributes are allowed for dialect-specific variants. Resolution needs no declaration ordering: DialectExpressionSelector.GetBestMatch picks the most specific matching dialect, and throws AmbiguousMatchException when two attributes match the same dialect.

See Also


ExpressionAttribute constructor (2 of 2)

Specifies SQL expression and dialects this property corresponds to.

public ExpressionAttribute(string expression, params ServerType[] serverTypes)
parameter description
expression An SQL expression like (T0.Firstname + ' ' + T0.LastName)
serverTypes Dialects like MySql, Sqlite.

See Also