Table of Contents

Interface ISchemaConstraint

Namespace
OrpheusInterfaces.Schema
Assembly
OrpheusInterfaces.dll

Represents a schema constraint.

public interface ISchemaConstraint

Properties

Action

Returns true if the constraint needs to drop.

DDLAction Action { get; set; }

Property Value

DDLAction

Constraint's DDLAction

ConstraintSQLCommand

The constraint SQL command. UNIQUE, PRIMARY KEY etc.

string ConstraintSQLCommand { get; }

Property Value

string

Fields

Fields which the constraint will be applied.

List<string> Fields { get; set; }

Property Value

List<string>

Fields affected from the constraint

Name

Constraint name.

string Name { get; set; }

Property Value

string

Constraint name

SchemaObject

Schema object were this schema constraint exists

ISchemaDataObject SchemaObject { get; }

Property Value

ISchemaDataObject

The schema object where the constraint exists

Sort

Key's sort direction.

SchemaSort Sort { get; set; }

Property Value

SchemaSort

Schema sort type

Methods

SQL()

Returns the SQL definition of the key.

string SQL()

Returns

string

Constraint's SQL