Class TableExtensions
Contains extension methods for LINQ queries.
Inheritance
Namespace: LinqToDB
Assembly: linq2db.dll
Syntax
public static class TableExtensions : object
Methods
| Improve this Doc View SourceGetTableName<T>(ITable<T>)
Builds table name for table
.
Declaration
public static string GetTableName<T>(this ITable<T> table)
Parameters
Type | Name | Description |
---|---|---|
ITable<T> | table | Table instance. |
Returns
Type | Description |
---|---|
System.String | Table name. |
Type Parameters
Name | Description |
---|---|
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.
Declaration
public static ITable<T> IsTemporary<T>(this ITable<T> table)
Parameters
Type | Name | Description |
---|---|---|
ITable<T> | table | Table-like query source. |
Returns
Type | Description |
---|---|
ITable<T> | Table-like query source with new owner/schema name. |
Type Parameters
Name | Description |
---|---|
T | Table record mapping class. |
IsTemporary<T>(ITable<T>, Boolean)
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.
Declaration
public static ITable<T> IsTemporary<T>(this ITable<T> table, bool isTemporary)
Parameters
Type | Name | Description |
---|---|---|
ITable<T> | table | Table-like query source. |
System.Boolean | isTemporary | If true, the current tables will handled as a temporary table. |
Returns
Type | Description |
---|---|
ITable<T> | Table-like query source with new owner/schema name. |
Type Parameters
Name | Description |
---|---|
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.
Declaration
public static ITable<T> TableOptions<T>(this ITable<T> table, TableOptions options)
Parameters
Type | Name | Description |
---|---|---|
ITable<T> | table | Table-like query source. |
TableOptions | options |
Returns
Type | Description |
---|---|
ITable<T> | Table-like query source with new owner/schema name. |
Type Parameters
Name | Description |
---|---|
T | Table record mapping class. |