Table of Contents

Class TableSchema

Namespace
LinqToDB.SchemaProvider
Assembly
linq2db.dll

Describes table-like objects such as tables, views, procedure or function results.

public class TableSchema
Inheritance
TableSchema
Derived
Inherited Members
Extension Methods

Constructors

TableSchema()

public TableSchema()

Properties

CatalogName

Gets table database (catalog) name.

public string? CatalogName { get; set; }

Property Value

string

Columns

Gets list of table columns.

public List<ColumnSchema> Columns { get; set; }

Property Value

List<ColumnSchema>

Description

Gets table description.

public string? Description { get; set; }

Property Value

string

ForeignKeys

Gets list of table foreign keys.

public List<ForeignKeySchema> ForeignKeys { get; set; }

Property Value

List<ForeignKeySchema>

GroupName

Gets table group name. Used by T4 templates to group tables to generate Schema Type if GenerateSchemaAsType is true. If NULL, SchemaName is used.

public string? GroupName { get; set; }

Property Value

string

ID

Gets unique table identifier, based on name, schema and database names.

public string? ID { get; set; }

Property Value

string

IsDefaultSchema

Gets flag indicating that table defined with default owner/schema or not.

public bool IsDefaultSchema { get; set; }

Property Value

bool

IsProcedureResult

Gets flag indicating that table describes procedure or function result set.

public bool IsProcedureResult { get; set; }

Property Value

bool

IsProviderSpecific

Gets flag indicating that it is not a user-defined table.

public bool IsProviderSpecific { get; set; }

Property Value

bool

IsView

Gets flag indicating that table describes view.

public bool IsView { get; set; }

Property Value

bool

SchemaName

Gets table owner/schema name.

public string? SchemaName { get; set; }

Property Value

string

TableName

Gets database table name.

public string? TableName { get; set; }

Property Value

string

TypeName

Gets C# friendly table name.

public string TypeName { get; set; }

Property Value

string