You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml
+24-19Lines changed: 24 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -52,29 +52,17 @@ The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> an
52
52
</format>
53
53
</remarks>
54
54
</ctor2>
55
-
<BatchCommands>
56
-
<summary>The list of commands contained in the batch in a <seecref="T:Microsoft.Data.SqlClient.SqlBatchCommandCollection" />.
57
-
</summary>
58
-
<remarks>
59
-
<formattype="text/markdown">
60
-
<![CDATA[
61
-
## Examples
62
-
The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and a <xref:Microsoft.Data.SqlClient.SqlBatch>, then adds multiple <xref:Microsoft.Data.SqlClient.SqlBatchCommand> objects to the batch. It then executes the batch, creating a <xref:Microsoft.Data.SqlClient.SqlDataReader>. The example reads through the results of the batch commands, writing them to the console. Finally, the example closes the <xref:Microsoft.Data.SqlClient.SqlDataReader> and then the <xref:Microsoft.Data.SqlClient.SqlConnection> as the `using` blocks fall out of scope.
@@ -101,6 +89,22 @@ The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> an
101
89
</format>
102
90
</remarks>
103
91
</Transaction>
92
+
<BatchCommands>
93
+
<summary>
94
+
The list of commands contained in the batch in a <seecref="T:Microsoft.Data.SqlClient.SqlBatchCommandCollection" />.
95
+
</summary>
96
+
<remarks>
97
+
<formattype="text/markdown">
98
+
<![CDATA[
99
+
## Examples
100
+
The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and a <xref:Microsoft.Data.SqlClient.SqlBatch>, then adds multiple <xref:Microsoft.Data.SqlClient.SqlBatchCommand> objects to the batch. It then executes the batch, creating a <xref:Microsoft.Data.SqlClient.SqlDataReader>. The example reads through the results of the batch commands, writing them to the console. Finally, the example closes the <xref:Microsoft.Data.SqlClient.SqlDataReader> and then the <xref:Microsoft.Data.SqlClient.SqlConnection> as the `using` blocks fall out of scope.
0 commit comments