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
-
objectDatabaseSpecificTable<TSource>
- Implements
-
ITable<TSource>IExpressionQuery<TSource>IOrderedQueryable<TSource>IQueryable<TSource>IEnumerable<TSource>
- Extension Methods
-
DataExtensions.RetrieveIdentityAsync<T>(IEnumerable<T>, IDataContext, bool, bool, CancellationToken)PostgreSQLExtensions.ArrayAggregate<TEntity, TV>(IQueryable<TEntity>, Expression<Func<TEntity, TV>>)LinqExtensions.Insert<T>(ITable<T>, T, Expression<Func<IEntityInsertSpec<T>, IEntityInsertSpec<T>>>)LinqExtensions.Update<T>(ITable<T>, T, Expression<Func<IEntityUpdateSpec<T>, IEntityUpdateSpec<T>>>)
Constructors
DatabaseSpecificTable(ITable<TSource>)
protected DatabaseSpecificTable(ITable<TSource> table)
Parameters
tableITable<TSource>
Properties
DataContext
public IDataContext DataContext { get; }
Property Value
DatabaseName
public string? DatabaseName { get; }
Property Value
DebugView
public QueryDebugView DebugView { get; }
Property Value
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
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
ServerName
public string? ServerName { get; }
Property Value
TableID
public string? TableID { get; }
Property Value
TableName
public string TableName { get; }
Property Value
TableOptions
public TableOptions TableOptions { get; }
Property Value
Methods
CreateQuery(Expression)
Constructs an IQueryable object that can evaluate the query represented by a specified expression tree.
public IQueryable CreateQuery(Expression expression)
Parameters
expressionExpressionAn 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
expressionExpressionAn 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
TElementThe 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
expressionExpressionAn 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
expressionExpressioncancellationTokenCancellationToken
Returns
- Task<IAsyncEnumerable<TResult>>
Type Parameters
TResult
ExecuteAsync<TResult>(Expression, CancellationToken)
public Task<TResult> ExecuteAsync<TResult>(Expression expression, CancellationToken cancellationToken)
Parameters
expressionExpressioncancellationTokenCancellationToken
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
expressionExpressionAn expression tree that represents a LINQ query.
Returns
- TResult
The value that results from executing the specified query.
Type Parameters
TResultThe 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.