[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.QueryDesigner.Implementation.Data.SchemaModel.ForeignKey.-ctor

ForeignKey Constructor

ForeignKey(Table, Table, IEnumerable<Column>, IEnumerable<Column>)

Initializes a new instance of the ForeignKey class.

Declaration
public ForeignKey(Table source, Table destination, IEnumerable<Column> sourceColumns, IEnumerable<Column> destinationColumns)
Parameters
Type Name Description
Table source

The source Table.

Table destination

The destination Table.

IEnumerable<Column> sourceColumns

The collection of the Column that defines a source table.

IEnumerable<Column> destinationColumns

The collection of the Column that defines a destination table.

Exceptions
Type Condition
ArgumentNullException

Thrown if one of the arguments source, destination, sourceColumns, destinationColumns is null.