IGenerator Interface

Defines the data generator contract.

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

Syntax

'Declaration
<CLSCompliantAttribute(True)> _
Public Interface IGenerator _
    Inherits IExtension, IDisposable
[CLSCompliantAttribute(true)]
public interface IGenerator : IExtension, 
    IDisposable
[CLSCompliantAttribute(true)]
public interface class IGenerator : IExtension, 
    IDisposable
[<CLSCompliantAttribute(true)>]
type IGenerator =  
    interface
        interface IExtension
        interface IDisposable
    end
public interface IGenerator extends IExtension, IDisposable

The IGenerator type exposes the following members.

Methods

  Name Description
Public method Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public method GenerateNextValues When it is implemented in a class, generates the next value according to the data generator algorithm.
Public method GetOutputValue When it is implemented in a class, retrieves an output value.
Public method Initialize When it is implemented in a class, initializes a data generator.
Public method SetInputValues Sets the input values for a data generator.
Public method ValidateInputs Validates that all the required inputs for a data generator have been set.

Top

Remarks

If the standard data generators are insufficient, you can create custom data generators. To create a custom data generator, you must create a class that implements IGenerator or inherits from Generator. You identify the class as a data generator by decorating it with GeneratorAttribute.

You can create a custom designer for a custom data generator, or you can use DefaultGeneratorDesigner. For more information, see An Overview of Data Generator Extensibility.

See Also

Reference

Microsoft.Data.Schema.Tools.DataGenerator Namespace

Generator

GeneratorAttribute

GeneratorInit

Other Resources

An Overview of Data Generator Extensibility

How to: Create Custom Data Generators