DataGenerationServices.PopulateDefaultMappings 方法

通过使用输出描述符映射的可用生成器的所提供列表,返回所选的数据库数据类型到输出描述符的特定默认映射。 这会返回所选的数据库数据类型到输出描述符的特定默认映射,以及扩展数据库数据类型到输出描述符的默认映射。

命名空间:  Microsoft.Data.Schema.Tools.DataGenerator
程序集:  Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)

语法

声明
Public Overridable Sub PopulateDefaultMappings ( _
    generatorsToOutputs As Dictionary(Of ExtensionHandle(Of IGenerator), OutputDescriptor()), _
    <OutAttribute> ByRef defaultMappings As Dictionary(Of DbType, OutputDescriptor), _
    <OutAttribute> ByRef defaultExtensionMappings As Dictionary(Of Type, OutputDescriptor) _
)
public virtual void PopulateDefaultMappings(
    Dictionary<ExtensionHandle<IGenerator>, OutputDescriptor[]> generatorsToOutputs,
    out Dictionary<DbType, OutputDescriptor> defaultMappings,
    out Dictionary<Type, OutputDescriptor> defaultExtensionMappings
)
public:
virtual void PopulateDefaultMappings(
    Dictionary<ExtensionHandle<IGenerator^>^, array<OutputDescriptor^>^>^ generatorsToOutputs, 
    [OutAttribute] Dictionary<DbType, OutputDescriptor^>^% defaultMappings, 
    [OutAttribute] Dictionary<Type^, OutputDescriptor^>^% defaultExtensionMappings
)
abstract PopulateDefaultMappings : 
        generatorsToOutputs:Dictionary<ExtensionHandle<IGenerator>, OutputDescriptor[]> * 
        defaultMappings:Dictionary<DbType, OutputDescriptor> byref * 
        defaultExtensionMappings:Dictionary<Type, OutputDescriptor> byref -> unit 
override PopulateDefaultMappings : 
        generatorsToOutputs:Dictionary<ExtensionHandle<IGenerator>, OutputDescriptor[]> * 
        defaultMappings:Dictionary<DbType, OutputDescriptor> byref * 
        defaultExtensionMappings:Dictionary<Type, OutputDescriptor> byref -> unit 
public function PopulateDefaultMappings(
    generatorsToOutputs : Dictionary<ExtensionHandle<IGenerator>, OutputDescriptor[]>, 
    defaultMappings : Dictionary<DbType, OutputDescriptor>, 
    defaultExtensionMappings : Dictionary<Type, OutputDescriptor>
)

参数

备注

通过此方法提供此信息,以便您的数据库架构模型可以显示在 Visual Studio 项目中,在那里用户可以创建和操作您已经在模型中定义的数据库对象。

.NET Framework 安全性

请参见

参考

DataGenerationServices 类

Microsoft.Data.Schema.Tools.DataGenerator 命名空间

DbType

ExtensionHandle

IGenerator

OutputDescriptor