Click or drag to resize

SqlStatement Class

Represents a finalized SqlStatement
Inheritance Hierarchy
SystemObject
  SanteDB.OrmLiteSqlStatement

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

The SqlStatement type exposes the following members.

Constructors
 NameDescription
Public methodSqlStatement(SqlStatement, String) Build a sql statement from a copy
Public methodSqlStatement(String, Object) Create a new SqlStatmeent
Public methodSqlStatement(String, String, Object) Create new SQL statement
Top
Properties
 NameDescription
Public propertyAlias Gets the alias
Public propertyArguments Gets the arguments
Public propertyIsPrepared True if this statement has been prepared
Public propertySql Gets the SQL
Top
Methods
 NameDescription
Public methodAppend(SqlStatement) Append sql statement other to this and return a new SqlStatement
Public methodAppend(String) Append sql statement other to this and return a new SqlStatement
Public methodContains True if this sql statement contains partialStatement
Public methodEndsWith True if any of the components in this statement end with partialStatement
Public methodEqualsDetermines whether the specified object is equal to the current object.
(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 methodIsEmpty True if the statement is empty
Public methodLast Get the last in the tree
Public methodPrepare Collapses this SqlStatement into a single statement for execution
Public methodReduce Reduces any empty statements from this chain
Public methodRemoveLast Remove the last statement from this SqlStatement
Public methodToLiteral Represent as a literal query string
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Top
Operators
 NameDescription
Public operatorStatic memberAddition(SqlStatement, SqlStatement) Concatenate the two sql statements together
Public operatorStatic memberAddition(SqlStatement, String) Concatenate with a simple string
Public operatorStatic memberAddition(String, SqlStatement) Concatenate with a simple string
Top
Fields
 NameDescription
Public fieldStatic memberEmpty Get an empty SQL statement
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