Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- errors
Type: System.Collections.Generic.List<DataSchemaError>%
(Output) A List<T> of DataSchemaError objects containing the errors that occurred during execution.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.