SqlBulkCopyColumnMapping.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Type Name="SqlBulkCopyColumnMapping" FullName="System.Data.SqlClient.SqlBulkCopyColumnMapping">
  3. <TypeSignature Language="C#" Value="public sealed class SqlBulkCopyColumnMapping" />
  4. <AssemblyInfo>
  5. <AssemblyName>System.Data</AssemblyName>
  6. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  7. </AssemblyInfo>
  8. <Base>
  9. <BaseTypeName>System.Object</BaseTypeName>
  10. </Base>
  11. <Interfaces />
  12. <Docs>
  13. <since version=".NET 2.0" />
  14. <remarks>
  15. <attribution license="cc4" from="Microsoft" modified="false" />
  16. <para>Column mappings define the mapping between data source and the target table.</para>
  17. <para>If mappings are not defined—that is, the <see cref="P:System.Data.SqlClient.SqlBulkCopy.ColumnMappings" /> collection is empty—the columns are mapped implicitly based on ordinal position. For this to work, source and target schemas must match. If they do not, an <see cref="T:System.InvalidOperationException" /> will be thrown.</para>
  18. <para>If the <see cref="P:System.Data.SqlClient.SqlBulkCopy.ColumnMappings" /> collection is not empty, not every column present in the data source has to be specified. Those not mapped by the collection are ignored.</para>
  19. <para>You can refer to source and target columns by either name or ordinal. You can also mix by-name and by-ordinal column references in the same mappings collection.</para>
  20. </remarks>
  21. <summary>
  22. <attribution license="cc4" from="Microsoft" modified="false" />
  23. <para>Defines the mapping between a column in a <see cref="T:System.Data.SqlClient.SqlBulkCopy" /> instance's data source and a column in the instance's destination table. </para>
  24. </summary>
  25. </Docs>
  26. <Members>
  27. <Member MemberName=".ctor">
  28. <MemberSignature Language="C#" Value="public SqlBulkCopyColumnMapping ();" />
  29. <MemberType>Constructor</MemberType>
  30. <Parameters />
  31. <Docs>
  32. <since version=".NET 2.0" />
  33. <remarks>
  34. <attribution license="cc4" from="Microsoft" modified="false" />
  35. <para>If you use this constructor, you must then define the source for the mapping using the <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.SourceColumn" /> property or the <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.SourceOrdinal" /> property, and define the destination for the mapping using the <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationColumn" /> property or the <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationOrdinal" /> property.</para>
  36. </remarks>
  37. <summary>
  38. <attribution license="cc4" from="Microsoft" modified="false" />
  39. <para>Default constructor that initializes a new <see cref="T:System.Data.SqlClient.SqlBulkCopyColumnMapping" /> object.</para>
  40. </summary>
  41. </Docs>
  42. <AssemblyInfo>
  43. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  44. </AssemblyInfo>
  45. </Member>
  46. <Member MemberName=".ctor">
  47. <MemberSignature Language="C#" Value="public SqlBulkCopyColumnMapping (int sourceColumnOrdinal, int destinationOrdinal);" />
  48. <MemberType>Constructor</MemberType>
  49. <Parameters>
  50. <Parameter Name="sourceColumnOrdinal" Type="System.Int32" />
  51. <Parameter Name="destinationOrdinal" Type="System.Int32" />
  52. </Parameters>
  53. <Docs>
  54. <remarks>To be added.</remarks>
  55. <since version=".NET 2.0" />
  56. <summary>
  57. <attribution license="cc4" from="Microsoft" modified="false" />
  58. <para>Creates a new column mapping, using column ordinals to refer to source and destination columns.</para>
  59. </summary>
  60. <param name="sourceColumnOrdinal">
  61. <attribution license="cc4" from="Microsoft" modified="false" />The ordinal position of the source column within the data source.</param>
  62. <param name="destinationOrdinal">
  63. <attribution license="cc4" from="Microsoft" modified="false" />The ordinal position of the destination column within the destination table.</param>
  64. </Docs>
  65. <AssemblyInfo>
  66. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  67. </AssemblyInfo>
  68. </Member>
  69. <Member MemberName=".ctor">
  70. <MemberSignature Language="C#" Value="public SqlBulkCopyColumnMapping (int sourceColumnOrdinal, string destinationColumn);" />
  71. <MemberType>Constructor</MemberType>
  72. <Parameters>
  73. <Parameter Name="sourceColumnOrdinal" Type="System.Int32" />
  74. <Parameter Name="destinationColumn" Type="System.String" />
  75. </Parameters>
  76. <Docs>
  77. <remarks>To be added.</remarks>
  78. <since version=".NET 2.0" />
  79. <summary>
  80. <attribution license="cc4" from="Microsoft" modified="false" />
  81. <para>Creates a new column mapping, using a column ordinal to refer to the source column and a column name for the target column.</para>
  82. </summary>
  83. <param name="sourceColumnOrdinal">
  84. <attribution license="cc4" from="Microsoft" modified="false" />The ordinal position of the source column within the data source.</param>
  85. <param name="destinationColumn">
  86. <attribution license="cc4" from="Microsoft" modified="false" />The name of the destination column within the destination table.</param>
  87. </Docs>
  88. <AssemblyInfo>
  89. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  90. </AssemblyInfo>
  91. </Member>
  92. <Member MemberName=".ctor">
  93. <MemberSignature Language="C#" Value="public SqlBulkCopyColumnMapping (string sourceColumn, int destinationOrdinal);" />
  94. <MemberType>Constructor</MemberType>
  95. <Parameters>
  96. <Parameter Name="sourceColumn" Type="System.String" />
  97. <Parameter Name="destinationOrdinal" Type="System.Int32" />
  98. </Parameters>
  99. <Docs>
  100. <remarks>To be added.</remarks>
  101. <since version=".NET 2.0" />
  102. <summary>
  103. <attribution license="cc4" from="Microsoft" modified="false" />
  104. <para>Creates a new column mapping, using a column name to refer to the source column and a column ordinal for the target column.</para>
  105. </summary>
  106. <param name="sourceColumn">
  107. <attribution license="cc4" from="Microsoft" modified="false" />The name of the source column within the data source.</param>
  108. <param name="destinationOrdinal">
  109. <attribution license="cc4" from="Microsoft" modified="false" />The ordinal position of the destination column within the destination table.</param>
  110. </Docs>
  111. <AssemblyInfo>
  112. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  113. </AssemblyInfo>
  114. </Member>
  115. <Member MemberName=".ctor">
  116. <MemberSignature Language="C#" Value="public SqlBulkCopyColumnMapping (string sourceColumn, string destinationColumn);" />
  117. <MemberType>Constructor</MemberType>
  118. <Parameters>
  119. <Parameter Name="sourceColumn" Type="System.String" />
  120. <Parameter Name="destinationColumn" Type="System.String" />
  121. </Parameters>
  122. <Docs>
  123. <remarks>To be added.</remarks>
  124. <since version=".NET 2.0" />
  125. <summary>
  126. <attribution license="cc4" from="Microsoft" modified="false" />
  127. <para>Creates a new column mapping, using column names to refer to source and destination columns.</para>
  128. </summary>
  129. <param name="sourceColumn">
  130. <attribution license="cc4" from="Microsoft" modified="false" />The name of the source column within the data source.</param>
  131. <param name="destinationColumn">
  132. <attribution license="cc4" from="Microsoft" modified="false" />The name of the destination column within the destination table.</param>
  133. </Docs>
  134. <AssemblyInfo>
  135. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  136. </AssemblyInfo>
  137. </Member>
  138. <Member MemberName="DestinationColumn">
  139. <MemberSignature Language="C#" Value="public string DestinationColumn { set; get; }" />
  140. <MemberType>Property</MemberType>
  141. <ReturnValue>
  142. <ReturnType>System.String</ReturnType>
  143. </ReturnValue>
  144. <Docs>
  145. <value>To be added.</value>
  146. <since version=".NET 2.0" />
  147. <remarks>
  148. <attribution license="cc4" from="Microsoft" modified="false" />
  149. <para>The <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationColumn" /> and <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationOrdinal" /> properties are mutually exclusive. The last value set takes precedence.</para>
  150. </remarks>
  151. <summary>
  152. <attribution license="cc4" from="Microsoft" modified="false" />
  153. <para>Name of the column being mapped in the destination database table.</para>
  154. </summary>
  155. </Docs>
  156. <AssemblyInfo>
  157. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  158. </AssemblyInfo>
  159. </Member>
  160. <Member MemberName="DestinationOrdinal">
  161. <MemberSignature Language="C#" Value="public int DestinationOrdinal { set; get; }" />
  162. <MemberType>Property</MemberType>
  163. <ReturnValue>
  164. <ReturnType>System.Int32</ReturnType>
  165. </ReturnValue>
  166. <Docs>
  167. <value>To be added.</value>
  168. <since version=".NET 2.0" />
  169. <remarks>
  170. <attribution license="cc4" from="Microsoft" modified="false" />
  171. <para>The <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationColumn" /> and <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationOrdinal" /> properties are mutually exclusive. The last value set takes precedence.</para>
  172. </remarks>
  173. <summary>
  174. <attribution license="cc4" from="Microsoft" modified="false" />
  175. <para>Ordinal value of the destination column within the destination table.</para>
  176. </summary>
  177. </Docs>
  178. <AssemblyInfo>
  179. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  180. </AssemblyInfo>
  181. </Member>
  182. <Member MemberName="SourceColumn">
  183. <MemberSignature Language="C#" Value="public string SourceColumn { set; get; }" />
  184. <MemberType>Property</MemberType>
  185. <ReturnValue>
  186. <ReturnType>System.String</ReturnType>
  187. </ReturnValue>
  188. <Docs>
  189. <value>To be added.</value>
  190. <since version=".NET 2.0" />
  191. <remarks>
  192. <attribution license="cc4" from="Microsoft" modified="false" />
  193. <para>The <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.SourceColumn" /> and <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.SourceOrdinal" /> properties are mutually exclusive. The last value set takes precedence.</para>
  194. </remarks>
  195. <summary>
  196. <attribution license="cc4" from="Microsoft" modified="false" />
  197. <para>Name of the column being mapped in the data source.</para>
  198. </summary>
  199. </Docs>
  200. <AssemblyInfo>
  201. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  202. </AssemblyInfo>
  203. </Member>
  204. <Member MemberName="SourceOrdinal">
  205. <MemberSignature Language="C#" Value="public int SourceOrdinal { set; get; }" />
  206. <MemberType>Property</MemberType>
  207. <ReturnValue>
  208. <ReturnType>System.Int32</ReturnType>
  209. </ReturnValue>
  210. <Docs>
  211. <value>To be added.</value>
  212. <since version=".NET 2.0" />
  213. <remarks>
  214. <attribution license="cc4" from="Microsoft" modified="false" />
  215. <para>The <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.SourceColumn" /> and <see cref="P:System.Data.SqlClient.SqlBulkCopyColumnMapping.SourceOrdinal" /> properties are mutually exclusive. The last value set takes precedence.</para>
  216. </remarks>
  217. <summary>
  218. <attribution license="cc4" from="Microsoft" modified="false" />
  219. <para>The ordinal position of the source column within the data source.</para>
  220. </summary>
  221. </Docs>
  222. <AssemblyInfo>
  223. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  224. </AssemblyInfo>
  225. </Member>
  226. </Members>
  227. </Type>