Table of Contents

Class TableExtensions

Namespace
LinqToDB
Assembly
linq2db.dll

Contains extension methods for LINQ queries.

public static class TableExtensions
Inheritance
TableExtensions

Methods

GetTableName<T>(ITable<T>)

Builds table name for table.

public static string GetTableName<T>(this ITable<T> table) where T : notnull

Parameters

table ITable<T>

Table instance.

Returns

string

Table name.

Type Parameters

T

Table record type.

IsTemporary<T>(ITable<T>)

Overrides IsTemporary flag for the current table. This call will have effect only for databases that support temporary tables.

Supported by: DB2, Oracle, PostgreSQL, Informix, SQL Server, Sybase ASE.

public static ITable<T> IsTemporary<T>(this ITable<T> table) where T : notnull

Parameters

table ITable<T>

Table-like query source.

Returns

ITable<T>

Table-like query source with new owner/schema name.

Type Parameters

T

Table record mapping class.

IsTemporary<T>(ITable<T>, bool)

Overrides IsTemporary flag for the current table. This call will have effect only for databases that support temporary tables.

Supported by: DB2, Oracle, PostgreSQL, Informix, SQL Server, Sybase ASE.

public static ITable<T> IsTemporary<T>(this ITable<T> table, bool isTemporary) where T : notnull

Parameters

table ITable<T>

Table-like query source.

isTemporary bool

If true, the current tables will handled as a temporary table.

Returns

ITable<T>

Table-like query source with new owner/schema name.

Type Parameters

T

Table record mapping class.

TableOptions<T>(ITable<T>, TableOptions)

Overrides TableOptions value for the current table. This call will have effect only for databases that support the options.

public static ITable<T> TableOptions<T>(this ITable<T> table, TableOptions options) where T : notnull

Parameters

table ITable<T>

Table-like query source.

options TableOptions

TableOptions<T>(ITable<T>, TableOptions) value.

Returns

ITable<T>

Table-like query source with new owner/schema name.

Type Parameters

T

Table record mapping class.