Skip to content

Commit afe0ee4

Browse files
committed
Small Test - Inherit Doc verification to XML
Following guided instructions, testing incrementally whether this is correct. Which appears to be sort of working based on compiled Microsoft XML document (no errors).
1 parent 1495903 commit afe0ee4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,8 @@ The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> an
7272
Returns whether the <see cref="P:Microsoft.Data.SqlClient.SqlBatchCommand.CreateParameter"/> method is implemented.
7373
</summary>
7474
</CanCreateParameter>
75+
<CommandText>
76+
<inheritdoc cref="P:Microsoft.Data.SqlClient.SqlBatchCommand.CommandText" />
77+
</CommandText>
7578
</members>
7679
</docs>

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlBatchCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ internal SqlBatchCommand(string commandText, SqlParameterCollection parameterCol
7575
#endif
7676
string CommandText { get => _text; set => _text = value; }
7777

78-
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatchCommand.xml' path='docs/members[@name="SqlBatchCommand"]/CommandType/*'/>
78+
/// <inheritdoc />
7979
public
8080
#if NET6_0_OR_GREATER
8181
override
@@ -85,14 +85,14 @@ internal SqlBatchCommand(string commandText, SqlParameterCollection parameterCol
8585
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatchCommand.xml' path='docs/members[@name="SqlBatchCommand"]/CommandBehavior/*'/>
8686
public CommandBehavior CommandBehavior { get => _behavior; set => _behavior = value; }
8787

88-
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatchCommand.xml' path='docs/members[@name="SqlBatchCommand"]/RecordsAffected/*'/>
88+
/// <inheritdoc />
8989
public
9090
#if NET6_0_OR_GREATER
9191
override
9292
#endif
9393
int RecordsAffected { get => _recordsAffected; }
9494

95-
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatchCommand.xml' path='docs/members[@name="SqlBatchCommand"]/DbParameterCollection/*'/>
95+
/// <inheritdoc />
9696
protected
9797
#if NET6_0_OR_GREATER
9898
override
@@ -119,7 +119,7 @@ internal set
119119
_parameters = value;
120120
}
121121
}
122-
122+
123123
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatchCommand.xml' path='docs/members[@name="SqlBatchCommand"]/ColumnEncryptionSetting/*'/>
124124
public SqlCommandColumnEncryptionSetting ColumnEncryptionSetting { get => _encryptionSetting; set => _encryptionSetting = value; }
125125

0 commit comments

Comments
 (0)