DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Linq.QueryableTable< T > Class Template Reference
Inheritance diagram for Deveel.Data.Linq.QueryableTable< T >:

Public Member Functions

 QueryableTable (TableQueryProvider provider)
 
 QueryableTable (TableQueryProvider provider, Expression expression)
 
IEnumerator< T > GetEnumerator ()
 
override string ToString ()
 

Properties

Expression Expression [get, private set]
 
Type ElementType [get]
 
IQueryProvider Provider [get, private set]
 

Private Member Functions

IEnumerator IEnumerable. GetEnumerator ()
 

Detailed Description

Definition at line 24 of file QueryableTable.cs.

Constructor & Destructor Documentation

Definition at line 25 of file QueryableTable.cs.

25  {
26  Provider = provider;
27  Expression = Expression.Constant(this);
28  }

Definition at line 30 of file QueryableTable.cs.

30  {
31  if (provider == null)
32  throw new ArgumentNullException("provider");
33  if (expression == null)
34  throw new ArgumentNullException("expression");
35 
36  if (!typeof(IQueryable<T>).IsAssignableFrom(expression.Type))
37  throw new ArgumentException("Invalid expression type.", "expression");
38 
39  Provider = provider;
40  Expression = expression;
41  }

Member Function Documentation

IEnumerator IEnumerable. Deveel.Data.Linq.QueryableTable< T >.GetEnumerator ( )
inlineprivate

Definition at line 43 of file QueryableTable.cs.

43  {
44  return ((IEnumerable) Provider.Execute(Expression)).GetEnumerator();
45  }
IEnumerator IEnumerable. GetEnumerator()
IEnumerator<T> Deveel.Data.Linq.QueryableTable< T >.GetEnumerator ( )
inline

Definition at line 55 of file QueryableTable.cs.

55  {
56  return ((IEnumerable<T>) Provider.Execute<T>(Expression)).GetEnumerator();
57  }
override string Deveel.Data.Linq.QueryableTable< T >.ToString ( )
inline

Definition at line 59 of file QueryableTable.cs.

59  {
60  return ((TableQueryProvider) Provider).GetQueryText(Expression);
61  }

Property Documentation

Type Deveel.Data.Linq.QueryableTable< T >.ElementType
get

Definition at line 49 of file QueryableTable.cs.

Expression Deveel.Data.Linq.QueryableTable< T >.Expression
getprivate set

Definition at line 47 of file QueryableTable.cs.

IQueryProvider Deveel.Data.Linq.QueryableTable< T >.Provider
getprivate set

Definition at line 53 of file QueryableTable.cs.


The documentation for this class was generated from the following file: