Click or drag to resize

TransformQueryResultSetTSource, TDestination Class

A query result set which wraps another and allows a constructor to execute a Func on each yield return iteration of the underlying result set.
Inheritance Hierarchy
SystemObject
  SanteDB.Core.Model.QueryTransformQueryResultSetTSource, TDestination

Namespace: SanteDB.Core.Model.Query
Assembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntax
public class TransformQueryResultSet<TSource, TDestination> : IQueryResultSet<TDestination>, 
	IQueryResultSet, IEnumerable, IEnumerable<TDestination>, IOrderableQueryResultSet

Type Parameters

TSource

[Missing <typeparam name="TSource"/> documentation for "T:SanteDB.Core.Model.Query.TransformQueryResultSet`2"]

TDestination

[Missing <typeparam name="TDestination"/> documentation for "T:SanteDB.Core.Model.Query.TransformQueryResultSet`2"]

The TransformQueryResultSetTSource, TDestination type exposes the following members.

Constructors
 NameDescription
Public methodTransformQueryResultSetTSource, TDestination Transform the query result set
Top
Properties
 NameDescription
Public propertyElementType Gets the types of elements which can be filtered and/or manipulated in the collection
Top
Methods
 NameDescription
Public methodAny Return if this has any results
Public methodAsStateful Return the result set as a stateful query
Public methodCount Return the count of results
Public methodDistinct Get only distinct objects in the collection
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExcept Do not include in the result set any objects which match the query
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 Return the first record in the result set
Public methodFirstOrDefault Return the first result or default (null)
Public methodGetEnumerator Get an enumerator for the source transformed through the transformer
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIntersect(ExpressionFuncTDestination, Boolean) Intersecting of transformed results sets is not supported
Public methodIntersect(IQueryResultSet) Intersect this set with other set
Public methodIntersect(IQueryResultSetTDestination) Intersect the destination with the source
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOfTypeTType Return the object of specified type
Public methodOrderBy Order by the specified expression
Public methodOrderByDescending Order by in descending order
Public methodSelectTReturn(Expression) Non-generic select method
Public methodSelectTReturn(ExpressionFuncTDestination, TReturn) Select the specified objects
Public methodSingle Return the only result
Public methodSingleOrDefault Return the only result or throw exception
Public methodSkip Skip the first N records
Public methodTake Take count results
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUnion(ExpressionFuncTDestination, Boolean) Union this set with those records mathcing query
Public methodUnion(IQueryResultSet) Union this set with another
Public methodUnion(IQueryResultSetTDestination) Union this set with another set
Public methodWhere(Expression) Filter the wrapped transformed expression using query
Public methodWhere(ExpressionFuncTDestination, Boolean) Filter wrapped result set
Top
Extension Methods
 NameDescription
Public Extension MethodApplyResultInstructions Apply result instructions
(Defined by QueryControlUtility)
Public Extension MethodAsResultSet As result set
(Defined by ExtensionMethods)
Public Extension MethodAsResultSetTDestination 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 MethodForEachTDestination 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 MethodOrderByTDestination, TKey Order result set
(Defined by ExtensionMethods)
Public Extension MethodOrderByDescendingTDestination, TKey Order result set
(Defined by ExtensionMethods)
Public Extension MethodToDictionaryIgnoringDuplicatesTDestination, 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 MethodToDictionaryIgnoringDuplicatesTDestination, 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 MethodTransformResultSetTDestination, 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
See Also