AdoDotNetObjectSelector.ApplyMappings 方法

定义

应用选择器映射。

protected:
 static void ApplyMappings(System::Data::DataTable ^ dataTable, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ mappings);
protected static void ApplyMappings (System.Data.DataTable dataTable, System.Collections.Generic.IDictionary<string,object> mappings);
static member ApplyMappings : System.Data.DataTable * System.Collections.Generic.IDictionary<string, obj> -> unit
Protected Shared Sub ApplyMappings (dataTable As DataTable, mappings As IDictionary(Of String, Object))

参数

dataTable
DataTable

调用方法返回的架构 GetSchema()

mappings
IDictionary<String,Object>

包含选择器映射的键/值对。

例外

schema 参数为 null。

适用于