TableComparisonResult

Models the result of a table configuration comparison.

Namespace:
KpokPatagon.Data.DatabaseSchema
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No

Constructors

TableComparisonResult

Creates a new instance of a Miss result.

Signature:
public Void TableComparisonResult(desired, miss)
Parameters
Name Type Summary
desired Table Desired Table configuration.
miss Boolean Whether the result is a miss (true) or a hit (false).
Exceptions
Type Summary
ArgumentNullException Thown when desired is null

Properties

ColumnConstraints

Actions to correct column constraint(s) miss-configuration.

Signature:
public List<MissActionForColumnConstraint> ColumnConstraints { get; set; }

Columns

Actions to correct column(s) miss-configuration.

Signature:
public List<MissActionForTableColumn> Columns { get; set; }

ForeignKeys

Actions to correct foreign key(s) miss-configuration.

Signature:
public List<MissActionForForeignKey> ForeignKeys { get; set; }

Indexes

Actions to correct index(es) miss-configuration.

Signature:
public List<MissActionForIndex> Indexes { get; set; }

Miss

Whether the result is a miss.

Signature:
public Boolean Miss { get; set; }

PrimaryKey

Actions to correct primary key miss-configuration.

Signature:
public List<MissActionForIndex> PrimaryKey { get; set; }

Table

Desired Table configuration.

Signature:
public Table Table { get; }

Type

Result type of table comparison.

Signature:
public TableComparisonMissResultType Type { get; set; }

Methods

Hit

Creates a new instance of a hit result.

Signature:
public TableComparisonResult Hit(desired)
Returns

A new instance of a hit result for desired.

Parameters
Name Type Summary
desired Table Desired Table configuration.

Missed

Creates a new instance of a missed result.

Signature:
public TableComparisonResult Missed(desired)
Returns

A new instance of a missed result for desired.

Parameters
Name Type Summary
desired Table Desired Table> configuration.

Missed

Creates a new instance of a missed result.

Signature:
public TableComparisonResult Missed(desired, type)
Returns

A new instance of a missed result for desired.

Parameters
Name Type Summary
desired Table Desired Table> configuration.
type TableComparisonMissResultType Miss result type.

ToString

Returns a textual representation of this object.

Signature:
public String ToString()