Click or drag to resize

SqlStatementBuilder Class

Represents a SQL statement builder tool
Inheritance Hierarchy
SystemObject
  SanteDB.OrmLiteSqlStatementBuilder

Namespace: SanteDB.OrmLite
Assembly: SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 3.0.2081-alpha+d0a78774d3f97b9193d2ae2fef6d129ea9f29519
Syntax
public class SqlStatementBuilder

The SqlStatementBuilder type exposes the following members.

Constructors
 NameDescription
Public methodSqlStatementBuilder(IDbStatementFactory, SqlStatement) Creates a new empty SQL statement
Public methodSqlStatementBuilder(IDbStatementFactory, String, Object) Create a new sql statement from the specified sql
Top
Properties
 NameDescription
Public propertyDbProvider Get the DB provider
Public propertyStatement Gets the constructed or set SQL
Top
Methods
 NameDescription
Public methodAnd(SqlStatement) Append an AND condition
Public methodAnd(String, Object) Construct a where clause on the expression tree
Public methodAndTExpression(ExpressionFuncTExpression, Boolean) Expression
Public methodAppend(SqlStatement) Append the SQL statement
Public methodAppend(SqlStatementBuilder) Append all the commands in otherBuilder
Public methodAppend(String, Object) Append the specified SQL
Public methodDeleteFrom Return a delete from
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInnerJoinTLeft, TRight Inner join
Public methodJoinTLeft, TRight Join by specific type of join
Public methodLimit Limit of the
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOffset Append an offset statement
Public methodOr(SqlStatement) Append an AND condition
Public methodOr(String, Object) Construct a where clause on the expression tree
Public methodOrderBy(LambdaExpression, SortOrderType) Construct an order by
Public methodOrderByTData(ExpressionFuncTData, Object, SortOrderType) Construct an order by
Public methodRemoveLast Removes the last statement from the list
Public methodRemoveLimit Remove the limit instruction
Public methodRemoveOffset Remove the offset instruction
Public methodRemoveOrderBy Remove the ORDER BY clause
Public methodSelectFrom(Type) Construct a SELECT FROM statement with the specified selectors
Public methodSelectFrom(Type, ColumnMapping) Return a select from
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUpdateSet Generate an update statement
Public methodUsingAlias Using an alias for column references
Public methodWhere(LambdaExpression) Construct a where clause
Public methodWhere(SqlStatement) Where clause
Public methodWhere(String, Object) Construct a where clause on the expression tree
Public methodWhereTExpression(ExpressionFuncTExpression, Boolean) Construct a where clause on the expression tree
Public methodWrapAsSubQuery Wrap as a subquery
Public methodWrapAsSubQuery(ColumnMapping) Wrap as a subquery
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also