Click or drag to resize

QueryBuilderCreateQueryTModel Method (IEnumerableKeyValuePairString, Object, String, Boolean, ListTableMapping, ModelSortTModel, ColumnMapping)

Query query

Namespace:  SanteDB.OrmLite
Assembly:  SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 2.2.1
Syntax
public SqlStatement CreateQuery<TModel>(
	IEnumerable<KeyValuePair<string, Object>> query,
	string tablePrefix,
	bool skipJoins,
	List<TableMapping> parentScopedTables,
	ModelSort<TModel>[] orderBy,
	params ColumnMapping[] selector
)

Parameters

query
Type: System.Collections.GenericIEnumerableKeyValuePairString, Object

[Missing <param name="query"/> documentation for "M:SanteDB.OrmLite.QueryBuilder.CreateQuery``1(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Object}},System.String,System.Boolean,System.Collections.Generic.List{SanteDB.OrmLite.TableMapping},SanteDB.Core.Model.Query.ModelSort{``0}[],SanteDB.OrmLite.ColumnMapping[])"]

tablePrefix
Type: SystemString

[Missing <param name="tablePrefix"/> documentation for "M:SanteDB.OrmLite.QueryBuilder.CreateQuery``1(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Object}},System.String,System.Boolean,System.Collections.Generic.List{SanteDB.OrmLite.TableMapping},SanteDB.Core.Model.Query.ModelSort{``0}[],SanteDB.OrmLite.ColumnMapping[])"]

skipJoins
Type: SystemBoolean

[Missing <param name="skipJoins"/> documentation for "M:SanteDB.OrmLite.QueryBuilder.CreateQuery``1(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Object}},System.String,System.Boolean,System.Collections.Generic.List{SanteDB.OrmLite.TableMapping},SanteDB.Core.Model.Query.ModelSort{``0}[],SanteDB.OrmLite.ColumnMapping[])"]

parentScopedTables
Type: System.Collections.GenericListTableMapping

[Missing <param name="parentScopedTables"/> documentation for "M:SanteDB.OrmLite.QueryBuilder.CreateQuery``1(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Object}},System.String,System.Boolean,System.Collections.Generic.List{SanteDB.OrmLite.TableMapping},SanteDB.Core.Model.Query.ModelSort{``0}[],SanteDB.OrmLite.ColumnMapping[])"]

orderBy
Type: SanteDB.Core.Model.QueryModelSortTModel

[Missing <param name="orderBy"/> documentation for "M:SanteDB.OrmLite.QueryBuilder.CreateQuery``1(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Object}},System.String,System.Boolean,System.Collections.Generic.List{SanteDB.OrmLite.TableMapping},SanteDB.Core.Model.Query.ModelSort{``0}[],SanteDB.OrmLite.ColumnMapping[])"]

selector
Type: SanteDB.OrmLiteColumnMapping

[Missing <param name="selector"/> documentation for "M:SanteDB.OrmLite.QueryBuilder.CreateQuery``1(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Object}},System.String,System.Boolean,System.Collections.Generic.List{SanteDB.OrmLite.TableMapping},SanteDB.Core.Model.Query.ModelSort{``0}[],SanteDB.OrmLite.ColumnMapping[])"]

Type Parameters

TModel

[Missing <typeparam name="TModel"/> documentation for "M:SanteDB.OrmLite.QueryBuilder.CreateQuery``1(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Object}},System.String,System.Boolean,System.Collections.Generic.List{SanteDB.OrmLite.TableMapping},SanteDB.Core.Model.Query.ModelSort{``0}[],SanteDB.OrmLite.ColumnMapping[])"]

Return Value

Type: SqlStatement

[Missing <returns> documentation for "M:SanteDB.OrmLite.QueryBuilder.CreateQuery``1(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Object}},System.String,System.Boolean,System.Collections.Generic.List{SanteDB.OrmLite.TableMapping},SanteDB.Core.Model.Query.ModelSort{``0}[],SanteDB.OrmLite.ColumnMapping[])"]

See Also