Share via


DataSink.OnValidateTarget Method

Called by the data generation engine during validation to allow derived classes to perform additional validation.

Namespace:  Microsoft.Data.Schema.Tools.DataGenerator
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
Protected Overridable Function OnValidateTarget ( _
    <OutAttribute> ByRef errors As List(Of DataSchemaError) _
) As Boolean
protected virtual bool OnValidateTarget(
    out List<DataSchemaError> errors
)
protected:
virtual bool OnValidateTarget(
    [OutAttribute] List<DataSchemaError^>^% errors
)
abstract OnValidateTarget : 
        errors:List<DataSchemaError> byref -> bool 
override OnValidateTarget : 
        errors:List<DataSchemaError> byref -> bool 
protected function OnValidateTarget(
    errors : List<DataSchemaError>
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the target database tables and columns match the tables and columns in the data generation plan; otherwise, false. The default implementation always returns true.

Remarks

In a derived class, this OnValidateTarget method can implement an entirely new validation process, or it can call the ValidateTargetModel helper method for validation.

.NET Framework Security

See Also

Reference

DataSink Class

Microsoft.Data.Schema.Tools.DataGenerator Namespace

DataSchemaError

ValidateTargetModel