Skip to content

Commit 0a56b25

Browse files
committed
Test Possible Corrections on "Cross Reference Not Found" for System.Collection and "Found no member can be inherited by key"
1 parent 0afee4c commit 0a56b25

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed

doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,17 @@ The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> an
5252
</format>
5353
</remarks>
5454
</ctor2>
55-
<BatchCommands>
56-
<summary>The list of commands contained in the batch in a <see cref="T:Microsoft.Data.SqlClient.SqlBatchCommandCollection" />.
57-
</summary>
58-
<remarks>
59-
<format type="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.
63-
64-
[!code-csharp[SqlCommand Example#1](~/../sqlclient/doc/samples/SqlBatch_ExecuteReader.cs#1)]
65-
]]>
66-
</format>
67-
</remarks>
68-
</BatchCommands>
55+
<timeout>
56+
<inheritdoc cref="P:System.Common.DbBatch.Timeout" />
57+
</timeout>
6958
<Commands>
7059
<summary>
71-
The list of commands contained in the batch in a <see cref="T:System.Collection.Generic.List&lt;Microsoft.Data.SqlClient.SqlBatchCommand&gt;" />.
60+
The list of commands contained in the batch in a
61+
<see cref="T:System.Collection.Generic.List"/> of
62+
<see cref="T:Microsoft.Data.SqlClient.SqlBatchCommand"/> objects.
7263
</summary>
7364
<remarks>
74-
<format type="text/markdown">
75-
<![CDATA[
76-
]]>
77-
</format>
65+
<format type="text/markdown"></format>
7866
</remarks>
7967
</Commands>
8068
<Connection>
@@ -101,6 +89,22 @@ The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> an
10189
</format>
10290
</remarks>
10391
</Transaction>
92+
<BatchCommands>
93+
<summary>
94+
The list of commands contained in the batch in a <see cref="T:Microsoft.Data.SqlClient.SqlBatchCommandCollection" />.
95+
</summary>
96+
<remarks>
97+
<format type="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.
101+
102+
[!code-csharp[SqlCommand Example#1](~/../sqlclient/doc/samples/SqlBatch_ExecuteReader.cs#1)]
103+
]]>
104+
</format>
105+
</remarks>
106+
</BatchCommands>
107+
104108
<ExecuteReader>
105109
<summary>
106110
Sends the
@@ -122,6 +126,7 @@ The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> an
122126
</format>
123127
</remarks>
124128
</ExecuteReader>
129+
125130
<ExecuteReaderAsync>
126131
<summary>
127132
An asynchronous version of

src/Microsoft.Data.SqlClient/ref/Microsoft.Data.SqlClient.Batch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class SqlBatch : System.Data.Common.DbBatch
1111
public SqlBatch() { throw null; }
1212
/// <include file='../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml' path='docs/members[@name="SqlBatch"]/ctor2/*'/>
1313
public SqlBatch(Microsoft.Data.SqlClient.SqlConnection connection, Microsoft.Data.SqlClient.SqlTransaction transaction = null) { throw null; }
14-
/// <inheritdoc />
14+
/// <include file='../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml' path='docs/members[@name="SqlBatch"]/timeout/*'/>
1515
public override int Timeout { get => throw null; set { } }
1616
/// <include file='../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml' path='docs/members[@name="SqlBatch"]/Timeout/*'/>
1717
public new Microsoft.Data.SqlClient.SqlConnection Connection { get => throw null; set { } }

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlBatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public SqlBatch(SqlConnection connection = null, SqlTransaction transaction = nu
3232
Connection = connection;
3333
Transaction = transaction;
3434
}
35-
/// <inheritdoc />
35+
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml' path='docs/members[@name="SqlBatch"]/timeout/*'/>
3636
public override int Timeout
3737
{
3838
get

0 commit comments

Comments
 (0)