Sql.Net Class Library Documentation

SqlExpression Class

Describes one expression of a WhereTerm

For a list of all members of this type, see SqlExpression Members.

System.Object
   Reeb.SqlOM.SqlExpression

public class SqlExpression

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

SqlExpression has no public constructor. Use one of the supplied static methods to create the type of the expression you need.

SqlExpression can represent a database field, or a static value. To create a SqlExpression represnting a field use the method. To create a static value, use one of the methods String, Date or Number accordingly to the type of the value.

Example

...
query.WherePhrase.Terms.Add(WhereTerm.CreateCompare(SqlExpression.Field("name", tCustomers), SqlExpression.String("John"), CompareOperator.Equal));
...

Requirements

Namespace: Reeb.SqlOM

Assembly: Reeb.SqlOM (in Reeb.SqlOM.dll)

See Also

SqlExpression Members | Reeb.SqlOM Namespace | Field