ExpressionAttribute class

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Services

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

[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class ExpressionAttribute : BaseExpressionAttribute
parameter description
value An SQL expression like (T0.Firstname + ' ' + T0.LastName)

Public Members

name description
ExpressionAttribute(…) Specifies SQL expression this property corresponds to. You may use brackets ([]) to escape identifiers. Brackets will be converted to database specific quotes. (2 constructors)
Dialect { get; set; } Gets or sets the dialect.
NegateDialect { get; set; } Gets or sets the negating of the dialect.
Value { get; } Gets the expression
override Translate(…)

Remarks

Specifies SQL expression this property corresponds to.

See Also