Class CompatibilitySchema.Constraint
- Namespace
- LinqToDB.Tools.DataProvider.SqlServer.Schemas
- Assembly
- linq2db.Tools.dll
sys.sysconstraints (Transact-SQL)
Applies to: √ SQL Server (all supported versions)
Contains mappings of constraints to the objects that own the constraints within the database.
important
This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping System Tables to System Views (Transact-SQL). This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
See sys.sysconstraints.
[Table(Schema = "sys", Name = "sysconstraints", IsView = true)]
public class CompatibilitySchema.Constraint
- Inheritance
-
CompatibilitySchema.Constraint
- Extension Methods
Properties
Actions
Reserved
[Column("actions")]
[Nullable]
public int? Actions { get; set; }
Property Value
- int?
ColumnID
ID of the column on which the constraint is defined.
0 = Table constraint
[Column("colid")]
[Nullable]
public short? ColumnID { get; set; }
Property Value
ConstraintID
Constraint number.
[Column("constid")]
[NotNull]
public int ConstraintID { get; set; }
Property Value
Error
Reserved
[Column("error")]
[Nullable]
public int? Error { get; set; }
Property Value
- int?
ID
ID of the table that owns the constraint.
[Column("id")]
[NotNull]
public int ID { get; set; }
Property Value
Spare1
Reserved
[Column("spare1")]
[Nullable]
public byte? Spare1 { get; set; }
Property Value
- byte?
Status
Pseudo-bit-mask indicating the status. Possible values include the following:
1 = PRIMARY KEY constraint
2 = UNIQUE KEY constraint
3 = FOREIGN KEY constraint
4 = CHECK constraint
5 = DEFAULT constraint
16 = Column-level constraint
32 = Table-level constraint
[Column("status")]
[Nullable]
public int? Status { get; set; }
Property Value
- int?