DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Linq.TableExtensions Class Reference

Static Public Member Functions

static IQueryable AsQueryable (this ITable table, Type elementType)
 
static IQueryable< T > AsQueryable< T > (this ITable table)
 

Detailed Description

Definition at line 23 of file TableExtensions.cs.

Member Function Documentation

static IQueryable Deveel.Data.Linq.TableExtensions.AsQueryable ( this ITable  table,
Type  elementType 
)
inlinestatic

Definition at line 24 of file TableExtensions.cs.

24  {
25  var type = typeof (QueryableTable<>).MakeGenericType(elementType);
26  var provider = new TableQueryProvider(table);
27  return Activator.CreateInstance(type, provider) as IQueryable;
28  }
static IQueryable<T> Deveel.Data.Linq.TableExtensions.AsQueryable< T > ( this ITable  table)
inlinestatic

Definition at line 30 of file TableExtensions.cs.

30  {
31  return new QueryableTable<T>(new TableQueryProvider(table));
32  }

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