RemoteTableQuery<T>
Overview
The RemoteTableQuery class is used in DA LINQ to represent queries to remote data sources. It contains a query expression tree and additionally implements the System.Linq.IQueryable<T> that is required for representing query results.
The generic type T defines the type of the data in the data source.
The RemoteTableQuery is a base class for the RemoteTable, which implements logic for the DA LINQ provider.
Location
- Reference: RemObjects.DataAbstract.dll
- Namespace: RemObjects.DataAbstract.Linq
constructor
Default constructor that creates an instance of the RemoteTableQuery.
constructor
RemoteTableQuery<T>()
Sub New()
constructor (IRemoteQueryProvider, Expression)
Creates a new instance of the RemoteTableQuery and associates it with a LINQ Expression and provider.
constructor(aProvider: IRemoteQueryProvider; aExpression: Expression)
RemoteTableQuery<T>(IRemoteQueryProvider aProvider, Expression aExpression)
Sub New(aProvider As IRemoteQueryProvider, aExpression As Expression)
Parameters:
- aProvider: Implementor of IRemoteQueryProvider that is able to execute
aExpression
. - aExpression: LINQ Expression appropriate to current instance.
ElementType
Returns a generic type for the current class instance.
For example, if the RemoteTableQuery<T> is instantiated like the RemoteTableQuery<Worker
>, this property will return the type of the Worker class.
property ElementType: Type read;
Type ElementType { get; }
ReadOnly Property ElementType() As Type
Expression
Returns the LINQ expression tree of the current instance.
property Expression: Expression read write;
Expression Expression { get; set; }
Property Expression() As Expression
GetEnumerable
Returns the result of a query execution as enumarable collection.
Implementation of the IRemoteTableQuery.
method GetEnumerable: IEnumerable
IEnumerable GetEnumerable()
Function GetEnumerable() As IEnumerable
GetEnumerator
Returns an enumerator of generic type through the result of the query execution.
Implementation of the System.Collections.IEnumerable.
method GetEnumerator: IEnumerator<T>
IEnumerator<T> GetEnumerator()
Function GetEnumerator() As IEnumerator<T>
GetEnumerator2
Similar to GetEnumerator()
, with the difference that a result of this method is not connected with a generic type.
method GetEnumerator2: IEnumerator
IEnumerator GetEnumerator2()
Function GetEnumerator2() As IEnumerator
Provider
property Provider: IQueryProvider read;
IQueryProvider Provider { get; }
ReadOnly Property Provider() As IQueryProvider
ToString
Returns the SQL text of the assosiated LINQ Expression.
method ToString: String
String ToString()
Function ToString() As String
ElementType
Returns a generic type for the current class instance.
For example, if the RemoteTableQuery<T> is instantiated like the RemoteTableQuery<Worker
>, this property will return the type of the Worker class.
property ElementType: Type read;
Type ElementType { get; }
ReadOnly Property ElementType() As Type
Expression
Returns the LINQ expression tree of the current instance.
property Expression: Expression read write;
Expression Expression { get; set; }
Property Expression() As Expression
Provider
property Provider: IQueryProvider read;
IQueryProvider Provider { get; }
ReadOnly Property Provider() As IQueryProvider
constructor
Default constructor that creates an instance of the RemoteTableQuery.
constructor
RemoteTableQuery<T>()
Sub New()
constructor (IRemoteQueryProvider, Expression)
Creates a new instance of the RemoteTableQuery and associates it with a LINQ Expression and provider.
constructor(aProvider: IRemoteQueryProvider; aExpression: Expression)
RemoteTableQuery<T>(IRemoteQueryProvider aProvider, Expression aExpression)
Sub New(aProvider As IRemoteQueryProvider, aExpression As Expression)
Parameters:
- aProvider: Implementor of IRemoteQueryProvider that is able to execute
aExpression
. - aExpression: LINQ Expression appropriate to current instance.
GetEnumerable
Returns the result of a query execution as enumarable collection.
Implementation of the IRemoteTableQuery.
method GetEnumerable: IEnumerable
IEnumerable GetEnumerable()
Function GetEnumerable() As IEnumerable
GetEnumerator
Returns an enumerator of generic type through the result of the query execution.
Implementation of the System.Collections.IEnumerable.
method GetEnumerator: IEnumerator<T>
IEnumerator<T> GetEnumerator()
Function GetEnumerator() As IEnumerator<T>
GetEnumerator2
Similar to GetEnumerator()
, with the difference that a result of this method is not connected with a generic type.
method GetEnumerator2: IEnumerator
IEnumerator GetEnumerator2()
Function GetEnumerator2() As IEnumerator
ToString
Returns the SQL text of the assosiated LINQ Expression.
method ToString: String
String ToString()
Function ToString() As String
DA LINQ
RemoteTable