Click or drag to resize

SqlStatement Class

Represents a SQL statement builder tool
Inheritance Hierarchy

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

The SqlStatement type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyArguments
Arguments for the SQL Statement
Public propertyDbProvider
Get the DB provider
Public propertyIsFinalized
True if the sql statement is finalized
Public propertySQL
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(String, Object)
Append the specified SQL
Public methodBuild
Build the special SQL statement
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
Protected methodGetMember
Get member information from lambda
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInnerJoin(Type, Type)
Inner join left and right
Public methodInnerJoinTLeft, TRight(ExpressionFuncTLeft, Object, ExpressionFuncTRight, Object)
Inner join
Public methodJoinTLeft, TRight
Join by specific type of join
Public methodLimit
Limit of the
Protected methodMemberwiseClone
Creates 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 methodOrderByTExpression
Construct an order by
Public methodRemoveLast
Removes the last statement from the list
Public methodRemoveLast(SqlStatement)
Removes the last statement from the list
Public methodSelectFrom(Type)
Return a select from
Public methodSelectFrom(Type, ColumnMapping)
Return a select from
Public methodToString
Represent as string
(Overrides ObjectToString.)
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
Top
Fields
  NameDescription
Protected fieldm_arguments
Arguments for the SQL statement
Protected fieldm_provider
Protected fieldm_rhs
RHS of the 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 MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
See Also