IGenerator 接口
定义数据生成器协定。
命名空间: Microsoft.Data.Schema.Tools.DataGenerator
程序集: Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)
语法
声明
<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
IGenerator 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
Dispose | 执行与释放或重置非托管资源相关的应用程序定义的任务。 (继承自 IDisposable。) | |
GenerateNextValues | 在类中实现时,根据数据生成器算法生成下一个值。 | |
GetOutputValue | 在类中实现时,检索输出值。 | |
Initialize | 在类中实现时,初始化数据生成器。 | |
SetInputValues | 为数据生成器设置输入值。 | |
ValidateInputs | 验证是否已设置了数据生成器所需的全部输入。 |
页首
备注
如果标准数据生成器不能满足需要,您可以创建自定义数据生成器。 若要创建自定义数据生成器,必须创建一个实现 IGenerator 的类或从 Generator 继承的类。 您可以通过使用 GeneratorAttribute 修饰该类来将其标识为数据生成器。
您可以为自定义数据生成器创建自定义设计器,也可以使用 DefaultGeneratorDesigner。 有关更多信息,请参见数据生成器扩展性概述。
请参见
参考
Microsoft.Data.Schema.Tools.DataGenerator 命名空间