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(String) Obsolete. Creates an IMutableCheckConstraint object that has the specified name.
Public method CreateCheckConstraint(ITabular, String) Creates an IMutableCheckConstraint object that has the specified name.
Public method CreateDefaultConstraint(String) Obsolete. Creates an IMutableDefaultConstraint object that has the specified name.
Public method CreateDefaultConstraint(IColumn, String) 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(IRelationalIndex) Obsolete. Creates an IPrimaryKeyConstraint object that is associated with the specified IRelationalIndex object.
Public method CreatePrimaryKeyConstraint(ITabular, IRelationalIndex) Creates an IPrimaryKeyConstraint object that is associated with the specified IRelationalIndex object.
Public method CreateUniqueConstraint(IRelationalIndex) Obsolete. Creates an IUniqueConstraint object that is associated with the specified IRelationalIndex object.
Public method CreateUniqueConstraint(ITabular, IRelationalIndex) Creates an IuniqueConstraint object that is associated with the specified IRelationalIndex object.

Top