Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public interface IConstraintFactory

System_CAPS_pubmethodCreateCheckConstraint(ITabular, String)

Creates an IMutableCheckConstraint object that has the specified name.

System_CAPS_pubmethodCreateDefaultConstraint(IColumn, String)

Creates an IMutableDefaultConstraint object that has the specified name.

System_CAPS_pubmethodCreateForeignKeyColumn(IColumn, IColumn)

Creates an IForeignKeyColumn object that has the specified referencing and referenced IColumn objects.

System_CAPS_pubmethodCreateForeignKeyConstraint(ITable, String)

Creates an IMutableForeignKeyConstraint object that belongs to the specified ITable and has the specified name.

System_CAPS_pubmethodCreatePrimaryKeyConstraint(ITabular, IRelationalIndex)

Creates an IPrimaryKeyConstraint object that is associated with the specified IRelationalIndex object.

System_CAPS_pubmethodCreateUniqueConstraint(ITabular, IRelationalIndex)

Creates an T:Microsoft.SqlServer.Management.SqlParser.Metadata.IuniqueConstraint object that is associated with the specified IRelationalIndex object.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft