Table of Contents

Class DatabaseSpecificTable<TSource>

Namespace
LinqToDB.Internal.DataProvider
Assembly
linq2db.dll
public abstract class DatabaseSpecificTable<TSource> : ITable<TSource>, IExpressionQuery<TSource>, IOrderedQueryable<TSource>, IQueryable<TSource>, IEnumerable<TSource>, IOrderedQueryable, IQueryable, IEnumerable, IQueryProviderAsync, IQueryProvider, IExpressionQuery where TSource : notnull

Type Parameters

TSource
Inheritance
object
DatabaseSpecificTable<TSource>
Implements
ITable<TSource>
IQueryable<TSource>
IEnumerable<TSource>
Extension Methods

Constructors

DatabaseSpecificTable(ITable<TSource>)

protected DatabaseSpecificTable(ITable<TSource> table)

Parameters

table ITable<TSource>

Properties

DataContext

public IDataContext DataContext { get; }

Property Value

IDataContext

DatabaseName

public string? DatabaseName { get; }

Property Value

string

DebugView

public QueryDebugView DebugView { get; }

Property Value

QueryDebugView

ElementType

Gets the type of the element(s) that are returned when the expression tree associated with this instance of IQueryable is executed.

public Type ElementType { get; }

Property Value

Type

A Type that represents the type of the element(s) that are returned when the expression tree associated with this object is executed.

Expression

public Expression Expression { get; }

Property Value

Expression

Provider

Gets the query provider that is associated with this data source.

public IQueryProvider Provider { get; }

Property Value

IQueryProvider

The IQueryProvider that is associated with this data source.

SchemaName

public string? SchemaName { get; }

Property Value

string

ServerName

public string? ServerName { get; }

Property Value

string

TableID

public string? TableID { get; }

Property Value

string

TableName

public string TableName { get; }

Property Value

string

TableOptions

public TableOptions TableOptions { get; }

Property Value

TableOptions

Methods

CreateQuery(Expression)

Constructs an IQueryable object that can evaluate the query represented by a specified expression tree.

public IQueryable CreateQuery(Expression expression)

Parameters

expression Expression

An expression tree that represents a LINQ query.

Returns

IQueryable

An IQueryable that can evaluate the query represented by the specified expression tree.

CreateQuery<TElement>(Expression)

Constructs an IQueryable<T> object that can evaluate the query represented by a specified expression tree.

public IQueryable<TElement> CreateQuery<TElement>(Expression expression)

Parameters

expression Expression

An expression tree that represents a LINQ query.

Returns

IQueryable<TElement>

An IQueryable<T> that can evaluate the query represented by the specified expression tree.

Type Parameters

TElement

The type of the elements of the IQueryable<T> that is returned.

Execute(Expression)

Executes the query represented by a specified expression tree.

public object Execute(Expression expression)

Parameters

expression Expression

An expression tree that represents a LINQ query.

Returns

object

The value that results from executing the specified query.

ExecuteAsyncEnumerable<TResult>(Expression, CancellationToken)

public Task<IAsyncEnumerable<TResult>> ExecuteAsyncEnumerable<TResult>(Expression expression, CancellationToken cancellationToken)

Parameters

expression Expression
cancellationToken CancellationToken

Returns

Task<IAsyncEnumerable<TResult>>

Type Parameters

TResult

ExecuteAsync<TResult>(Expression, CancellationToken)

public Task<TResult> ExecuteAsync<TResult>(Expression expression, CancellationToken cancellationToken)

Parameters

expression Expression
cancellationToken CancellationToken

Returns

Task<TResult>

Type Parameters

TResult

Execute<TResult>(Expression)

Executes the strongly-typed query represented by a specified expression tree.

public TResult Execute<TResult>(Expression expression)

Parameters

expression Expression

An expression tree that represents a LINQ query.

Returns

TResult

The value that results from executing the specified query.

Type Parameters

TResult

The type of the value that results from executing the query.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<TSource> GetEnumerator()

Returns

IEnumerator<TSource>

An enumerator that can be used to iterate through the collection.