Share via


IConstraintFactory Interface

Defines methods that are used to create constraint objects.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Interface IConstraintFactory
'Usage
Dim instance As IConstraintFactory
public interface IConstraintFactory
public interface class IConstraintFactory
type IConstraintFactory =  interface end
public interface IConstraintFactory

The IConstraintFactory type exposes the following members.

Methods

  Name Description
Public method CreateCheckConstraint Creates an IMutableCheckConstraint object that has the specified name.
Public method CreateDefaultConstraint Creates an IMutableDefaultConstraint object that has the specified name.
Public method CreateForeignKeyColumn Creates an IForeignKeyColumn object that has the specified referencing and referenced IColumn objects.
Public method CreateForeignKeyConstraint Creates an IMutableForeignKeyConstraint object that belongs to the specified ITable and has the specified name.
Public method CreatePrimaryKeyConstraint Creates an IPrimaryKeyConstraint object that is associated with the specified IRelationalIndex object.
Public method CreateUniqueConstraint Creates an IuniqueConstraint object that is associated with the specified IRelationalIndex object.

Top

See Also

Reference

Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace