DataGenerationServices.PopulateDefaultMappings Method
Returns your choices for the specific default mappings of database data types to output descriptors by using the provided list of available generator to output descriptor mappings. It returns your choices for the specific default mappings of database data types to output descriptors, and the default mappings of extended database data types to output descriptors.
Namespace: Microsoft.Data.Schema.Tools.DataGenerator
Assembly: Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)
Syntax
'Declaration
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>
)
Parameters
- generatorsToOutputs
Type: System.Collections.Generic.Dictionary<ExtensionHandle<IGenerator>, array<OutputDescriptor[]>
A Dictionary<TKey, TValue>, where each item is an ExtensionHandle for an IGenerator and an array of OutputDescriptor objects.
- defaultMappings
Type: System.Collections.Generic.Dictionary<DbType, OutputDescriptor>%
(Output) A Dictionary<TKey, TValue>, where each item is a DbType and your choice of the most appropriate OutputDescriptor.
- defaultExtensionMappings
Type: System.Collections.Generic.Dictionary<Type, OutputDescriptor>%
(Output) A Dictionary<TKey, TValue>, where each item is a Type for an extended database data type and your choice for the most appropriate OutputDescriptor.
Remarks
Provide this information through this method so that your database schema model can be represented in Visual Studio projects, where users can create and manipulate database objects that you have defined in your model.
.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.