Click or drag to resize

SqlStatementT Class

Represents a strongly typed SQL Statement
Inheritance Hierarchy
SystemObject
  SanteDB.OrmLiteSqlStatement
    SanteDB.OrmLiteSqlStatementT

Namespace:  SanteDB.OrmLite
Assembly:  SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 2.2.1
Syntax
public class SqlStatement<T> : SqlStatement

Type Parameters

T

The SqlStatementT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyArguments
Arguments for the SQL Statement
(Inherited from SqlStatement.)
Public propertyDbProvider
Get the DB provider
(Inherited from SqlStatement.)
Public propertyIsFinalized
True if the sql statement is finalized
(Inherited from SqlStatement.)
Public propertySQL
Gets the constructed or set SQL
(Inherited from SqlStatement.)
Public propertyTableType
Gets the table type
Top
Methods
  NameDescription
Public methodAnd(SqlStatement)
Append an AND condition
(Inherited from SqlStatement.)
Public methodAnd(String, Object)
Construct a where clause on the expression tree
(Inherited from SqlStatement.)
Public methodAndTExpression(ExpressionFuncTExpression, Boolean)
Expression
(Inherited from SqlStatement.)
Public methodAppend(SqlStatement)
Append the SQL statement
(Inherited from SqlStatement.)
Public methodAppend(SqlStatementT)
Append the SQL statement
Public methodAppend(String, Object)
Append the specified SQL
(Inherited from SqlStatement.)
Public methodAutoJoinTJoinTable, TReturn
Appends an inner join
Public methodBuild
Build the special SQL statement
(Inherited from SqlStatement.)
Public methodDeleteFrom
Create a delete from
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLast
Get the last statement
(Inherited from SqlStatement.)
Protected methodGetMember
Get member information from lambda
(Inherited from SqlStatement.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInnerJoin(Type, Type)
Inner join left and right
(Inherited from SqlStatement.)
Public methodInnerJoinTRight(ExpressionFuncT, Object, ExpressionFuncTRight, Object)
Inner join
Public methodInnerJoinTLeft, TRight(ExpressionFuncTLeft, Object, ExpressionFuncTRight, Object)
Inner join
(Inherited from SqlStatement.)
Public methodJoinTLeft, TRight
Join by specific type of join
(Inherited from SqlStatement.)
Public methodLimit
Limit of the
(Inherited from SqlStatement.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOffset
Append an offset statement
(Inherited from SqlStatement.)
Public methodOr(SqlStatement)
Append an AND condition
(Inherited from SqlStatement.)
Public methodOr(String, Object)
Construct a where clause on the expression tree
(Inherited from SqlStatement.)
Public methodOrderByTExpression
Construct an order by
(Inherited from SqlStatement.)
Public methodRemoveLast
Removes the last statement from the list
(Inherited from SqlStatement.)
Public methodRemoveLast(SqlStatement)
Removes the last statement from the list
(Inherited from SqlStatement.)
Public methodSelectFrom
Construct a SELECT FROM statement
Public methodSelectFrom(ColumnMapping)
Construct a SELECT FROM statement with the specified selectors
Public methodSelectFrom(Type)
Return a select from
(Inherited from SqlStatement.)
Public methodSelectFrom(Type)
Construct a SELECT FROM statement with the specified selectors
Public methodSelectFrom(Type, ColumnMapping)
Return a select from
(Inherited from SqlStatement.)
Public methodToString
Represent as string
(Inherited from SqlStatement.)
Public methodUpdateSet
Generate an update statement
Public methodWhere(ExpressionFuncT, Boolean)
Construct a where clause on the expression tree
Public methodWhere(SqlStatement)
Where clause
(Inherited from SqlStatement.)
Public methodWhere(String, Object)
Construct a where clause on the expression tree
(Inherited from SqlStatement.)
Public methodWhereTExpression(ExpressionFuncTExpression, Boolean)
Construct a where clause on the expression tree
(Inherited from SqlStatement.)
Top
Fields
  NameDescription
Protected fieldm_arguments
Arguments for the SQL statement
(Inherited from SqlStatement.)
Protected fieldm_provider (Inherited from SqlStatement.)
Protected fieldm_rhs
RHS of the SQL statement
(Inherited from SqlStatement.)
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 MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
See Also