C# Class Framework.Migrator.Fluent.AddForeignKey

Adds foreign key to new or existing table.
Inheritance: ForeignKey
Exibir arquivo Open project: coreframework/Core-Framework Class Usage Examples

Public Methods

Method Description
AddForeignKey ( String reference, String foreignKeyTable ) : System

Initializes a new instance of the AddForeignKey class.

Migrate ( ITransformationProvider database ) : void

Adds foreign key and foreign key column if specified.

Method Details

AddForeignKey() public method

Initializes a new instance of the AddForeignKey class.
public AddForeignKey ( String reference, String foreignKeyTable ) : System
reference String The reference.
foreignKeyTable String The foreign key table.
return System

Migrate() public method

Adds foreign key and foreign key column if specified.
public Migrate ( ITransformationProvider database ) : void
database ITransformationProvider The database.
return void