A convenience function for easy access to the first or second FieldType in a FieldPair. Returns the requested FieldType, or the FieldType for the other database if the requested FieldType is null.

Namespace:  RedGate.SQLDataCompare.Engine
Assembly:  RedGate.SQLDataCompare.Engine (in RedGate.SQLDataCompare.Engine.dll)

Syntax

Visual Basic (Declaration)
Public Function Type ( _
	onTwo As Boolean _
) As FieldType
C#
public FieldType Type(
	bool onTwo
)
Visual C++
public:
FieldType Type(
	bool onTwo
)

Parameters

onTwo
Type: System..::.Boolean
true for the second database; false for the first database.

Return Value

The FieldType for the field in the requested database; if null, the FieldType for the field in the other database.

See Also