Search Results for

    Show / Hide Table of Contents

    Class TableExtensions

    Contains extension methods for LINQ queries.

    Inheritance
    System.Object
    TableExtensions
    Namespace: LinqToDB
    Assembly: linq2db.dll
    Syntax
    public static class TableExtensions : object

    Methods

    | Improve this Doc View Source

    GetTableName<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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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

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

    Returns
    Type Description
    ITable<T>

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

    Type Parameters
    Name Description
    T

    Table record mapping class.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2011-2022 linq2db.com

    Generated by DocFX