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>
)
参数
- generatorsToOutputs
类型:System.Collections.Generic.Dictionary<ExtensionHandle<IGenerator>, array<OutputDescriptor[]>
一个 Dictionary<TKey, TValue>,其中每项都是 IGenerator 的 ExtensionHandle 以及 OutputDescriptor 对象的数组。
- defaultMappings
类型:System.Collections.Generic.Dictionary<DbType, OutputDescriptor>%
(输出)一个 Dictionary<TKey, TValue>,其中每项都是 DbType 以及您选择的最适合的 OutputDescriptor。
- defaultExtensionMappings
类型:System.Collections.Generic.Dictionary<Type, OutputDescriptor>%
(输出)一个 Dictionary<TKey, TValue>,其中每项都是扩展数据库数据类型的 Type 以及您选择的最适合的 OutputDescriptor。
备注
通过此方法提供此信息,以便您的数据库架构模型可以显示在 Visual Studio 项目中,在那里用户可以创建和操作您已经在模型中定义的数据库对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。