Click or drag to resize

MappedQueryResultSetTElement Class

Represents an Ado Persistence query set
Inheritance Hierarchy
SystemObject
  SanteDB.OrmLite.MappedResultSetsMappedQueryResultSetTElement
    SanteDB.OrmLite.MappedResultSetsMappedStatefulQueryResultSetTData

Namespace: SanteDB.OrmLite.MappedResultSets
Assembly: SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 3.0.2081-alpha+d0a78774d3f97b9193d2ae2fef6d129ea9f29519
Syntax
public class MappedQueryResultSet<TElement> : IQueryResultSet<TElement>, 
	IQueryResultSet, IEnumerable, IEnumerable<TElement>, IOrderableQueryResultSet<TElement>, 
	IOrderableQueryResultSet, IDisposable

Type Parameters

TElement

[Missing <typeparam name="TElement"/> documentation for "T:SanteDB.OrmLite.MappedResultSets.MappedQueryResultSet`1"]

The MappedQueryResultSetTElement type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyElementType Gets the types of elements which can be filtered and/or manipulated in the collection
Protected propertyProvider Get the provider for this set
Protected propertyStateKeyName State key name
Top
Methods
 NameDescription
Public methodAny Return true if there are any matching reuslts
Public methodAsStateful Creates a query set or loads the specified query set
Protected methodCloneWith Clone with the specified result set
Public methodCount Get the count of objects
Public methodDispose Dispose of this object
Public methodDistinct Adds distinct instruction
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExcept Except the results in this query set with those in another
Public methodExecuteTDBModel Execute the specified SQL statement
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 methodFirst Get the first instance of results
Public methodFirstOrDefault Get the first or default of the result
Public methodGetEnumerator Flattens the object into an enumerator
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIntersect(ExpressionFuncTElement, Boolean) Intersect with another dataset
Public methodIntersect(IQueryResultSet) Intersect the other result set - note this can only be of same type of set
Public methodIntersect(IQueryResultSetTElement) Intersect with another result set
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOfTypeTType Return only those results in the result set which are of type TType
Public methodOrderBy(Expression) Order by a generic expression
Public methodOrderByTKey(ExpressionFuncTElement, TKey) Append the order by statements onto the specifed result set
Public methodOrderByDescending(Expression) Order by descending order
Public methodOrderByDescendingTKey(ExpressionFuncTElement, TKey) Order result set by descending order
Protected methodPrepareResultSet Prepare the result set for execution
Public methodSelectTReturn(Expression) Non-generic select method
Public methodSelectTReturn(ExpressionFuncTElement, TReturn) Select the specified objects from the database
Public methodSelectTReturn(FuncTElement, TReturn) Select the specifed objects with a C# expression
Public methodSingle Get only one object
Public methodSingleOrDefault Get only one of the objects
Public methodSkip Skip the specified number of elements
Public methodTake Takes the number of objects from the result set
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUnion(ExpressionFuncTElement, Boolean) Union the results in this query set with those in another
Public methodUnion(IQueryResultSet) Union the other result set - note this can only be of the same type of set
Public methodUnion(IQueryResultSetTElement) Union this dataset with another
Public methodWhere(Expression) Non-generic version of where
Public methodWhere(ExpressionFuncTElement, Boolean) Where clause for filtering on provider
Top
Extension Methods
 NameDescription
Public Extension MethodApplyResultInstructions Apply result instructions
(Defined by QueryControlUtility)
Public Extension MethodAsResultSet As result set
(Defined by ExtensionMethods)
Public Extension MethodAsResultSetTElement As result set
(Defined by ExtensionMethods)
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 MethodForEachTElement For each item in an enumerable
(Defined by ExtensionMethods)
Public Extension MethodIsNullOrEmpty Returns true if the IList is null or has no elements
(Defined by ExtensionMethods)
Public Extension MethodOrderByTElement, TKey Order result set
(Defined by ExtensionMethods)
Public Extension MethodOrderByDescendingTElement, TKey Order result set
(Defined by ExtensionMethods)
Public Extension MethodToDictionaryIgnoringDuplicatesTElement, TKey Creates a DictionaryTKey, TValue from an IEnumerableT according to specified key selector function. Diplicate keys will not be added to the dictionary.
(Defined by ExtensionMethods)
Public Extension MethodToDictionaryIgnoringDuplicatesTElement, TKey, TElement Creates a DictionaryTKey, TValue from an IEnumerableT according to specified key selector and element selector functions. Diplicate keys will not be added to the dictionary.
(Defined by ExtensionMethods)
Public Extension MethodTransformResultSetTElement, TTo As a result set
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
Remarks
This query set wraps the returns of Query methods and allows for delay loading of the resulting data from the underlying data provider
See Also