Class InformationSchema.ConstraintTableUsage
- Namespace
- LinqToDB.Tools.DataProvider.SqlServer.Schemas
- Assembly
- linq2db.Tools.dll
CONSTRAINT_TABLE_USAGE (Transact-SQL)
Applies to: √ SQL Server (all supported versions) √ Azure SQL Database
Returns one row for each table in the current database that has a constraint defined on the table. This information schema view returns information about the objects to which the current user has permissions.
To retrieve information from these views, specify the fully qualified name of INFORMATION_SCHEMA._view_name_.
[Table(Schema = "INFORMATION_SCHEMA", Name = "CONSTRAINT_TABLE_USAGE", IsView = true)]
public class InformationSchema.ConstraintTableUsage
- Inheritance
-
InformationSchema.ConstraintTableUsage
- Extension Methods
Properties
ConstraintCatalog
Constraint qualifier.
[Column("CONSTRAINT_CATALOG")]
[Nullable]
public string? ConstraintCatalog { get; set; }
Property Value
ConstraintName
Constraint name.
[Column("CONSTRAINT_NAME")]
[NotNull]
public string ConstraintName { get; set; }
Property Value
ConstraintSchema
Name of schema that contains the constraint.
Important Do not use INFORMATION_SCHEMA views to determine the schema of an object. INFORMATION_SCHEMA views only represent a subset of the metadata of an object. The only reliable way to find the schema of a object is to query the sys.objects catalog view.
[Column("CONSTRAINT_SCHEMA")]
[Nullable]
public string? ConstraintSchema { get; set; }
Property Value
TableCatalog
Table qualifier.
[Column("TABLE_CATALOG")]
[Nullable]
public string? TableCatalog { get; set; }
Property Value
TableName
Table name.
[Column("TABLE_NAME")]
[NotNull]
public string TableName { get; set; }
Property Value
TableSchema
Name of schema that contains the table.
Important Do not use INFORMATION_SCHEMA views to determine the schema of an object. INFORMATION_SCHEMA views only represent a subset of the metadata of an object. The only reliable way to find the schema of a object is to query the sys.objects catalog view.
[Column("TABLE_SCHEMA")]
[Nullable]
public string? TableSchema { get; set; }