Skip to content

Commit 8981257

Browse files
authored
add language slugs (#11219)
1 parent d7d0136 commit 8981257

23 files changed

+87
-99
lines changed

xml/System.Data.Common.CommandTrees.ExpressionBuilder/DbExpressionBuilder.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,15 +1845,15 @@ The expressions produced by <paramref name="outerKey" /> and <paramref name="inn
18451845
<format type="text/markdown"><![CDATA[
18461846
18471847
## Remarks
1848-
To be compatible with Join, `TSelector` must be derived from <xref:System.Data.Common.CommandTrees.DbExpression>, or must be an anonymous type with DbExpression-derived properties. The following are examples of supported types for `TSelector`:
1848+
To be compatible with Join, `TSelector` must be derived from <xref:System.Data.Common.CommandTrees.DbExpression>, or must be an anonymous type with DbExpression-derived properties. The following are examples of supported types for `TSelector`:
18491849
1850-
```
1850+
```csharp
18511851
outer.Join(inner, o => o.Property("ID"), i => i.Property("ID"), (o, i) => o.Property("Name"))
18521852
```
18531853
18541854
(`TSelector` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).
18551855
1856-
```
1856+
```csharp
18571857
outer.Join(inner, o => o.Property("ID"), i => i.Property("ID"), (o, i) => new { OName = o.Property("Name"), IName = i.Property("Name") })
18581858
```
18591859
@@ -3451,15 +3451,15 @@ The result of <paramref name="apply" /> contains a name or expression that is no
34513451
<format type="text/markdown"><![CDATA[
34523452
34533453
## Remarks
3454-
To be compatible with Select, `TProjection` must be derived from <xref:System.Data.Common.CommandTrees.DbExpression>, or must be an anonymous type with DbExpression-derived properties. The following are examples of supported types for `TProjection`:
3454+
To be compatible with Select, `TProjection` must be derived from <xref:System.Data.Common.CommandTrees.DbExpression>, or must be an anonymous type with DbExpression-derived properties. The following are examples of supported types for `TProjection`:
34553455
3456-
```
3456+
```csharp
34573457
source.Select(x => x.Property("Name"))
34583458
```
34593459
3460-
`TProjection` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).
3460+
(`TProjection` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).
34613461
3462-
```
3462+
```csharp
34633463
source.Select(x => new { Name = x.Property("Name") })
34643464
```
34653465
@@ -3548,15 +3548,15 @@ The expression produced by <paramref name="apply" /> does not have a collection
35483548
<format type="text/markdown"><![CDATA[
35493549
35503550
## Remarks
3551-
To be compatible with SelectMany, `TSelector` must be derived from <xref:System.Data.Common.CommandTrees.DbExpression>, or must be an anonymous type with DbExpression-derived properties. The following are examples of supported types for `TSelector`:
3551+
To be compatible with SelectMany, `TSelector` must be derived from <xref:System.Data.Common.CommandTrees.DbExpression>, or must be an anonymous type with DbExpression-derived properties. The following are examples of supported types for `TSelector`:
35523552
3553-
```
3553+
```csharp
35543554
source.SelectMany(x => x.Property("RelatedCollection"), (source, apply) => apply.Property("Name"))
35553555
```
35563556
35573557
(`TSelector` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).
35583558
3559-
```
3559+
```csharp
35603560
source.SelectMany(x => x.Property("RelatedCollection"), (source, apply) => new { SourceName = source.Property("Name"), RelatedName = apply.Property("Name") })
35613561
```
35623562

xml/System.Data.Common/DbConnectionStringBuilder.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ builder["Initial Catalog"] = "AdventureWorks;NewValue=Bad";
107107
108108
The result is the following connection string that handles the invalid value in a safe manner:
109109
110-
```
110+
```txt
111111
data source=(local);integrated security=True;
112112
initial catalog="AdventureWorks;NewValue=Bad"
113113
```
@@ -676,7 +676,7 @@ initial catalog="AdventureWorks;NewValue=Bad"
676676
## Remarks
677677
This property returns a semicolon-delimited list of key/value pairs stored within the collection maintained by the <xref:System.Data.Common.DbConnectionStringBuilder>. Each pair contains the key and value, separated by an equal sign. The following example illustrates a typical connection string.
678678
679-
```
679+
```txt
680680
"Persist Security Info=False;Integrated Security=SSPI;Initial Catalog=AdventureWorks;Data Source=(local)"
681681
```
682682
@@ -763,7 +763,7 @@ initial catalog="AdventureWorks;NewValue=Bad"
763763
764764
This code produces the following output:
765765
766-
```
766+
```txt
767767
Contents of the DbConnectionStringBuilder:
768768
provider="Provider=Microsoft.Jet.OLEDB.4.0";data
769769
source=C:\MyExcel.xls;extended
@@ -902,7 +902,7 @@ The collection contains the key "Data Source".
902902
903903
This sample displays the following output:
904904
905-
```
905+
```txt
906906
builder1 = value1=SomeValue;value2=20;value3=30;value4=40
907907
builder2 = value2=20;value3=30;value4=40;value1=SomeValue
908908
builder3 = value2=20;value3=30;value4=40;value1=SOMEVALUE
@@ -1297,7 +1297,7 @@ builder2.EquivalentTo(builder3) = False
12971297
12981298
This sample displays the following output:
12991299
1300-
```
1300+
```txt
13011301
Removed 'Provider'
13021302
data source=C:\Demo.mdb;jet oledb:system database=system.mdw
13031303
Unable to remove 'User ID'
@@ -2817,7 +2817,7 @@ This member is an explicit interface member implementation. It can be used only
28172817
28182818
The sample displays the following results:
28192819
2820-
```
2820+
```txt
28212821
Provider=sqloledb
28222822
DATA SOURCE=192.168.168.1,1433
28232823
Unable to retrieve value for //InvalidKey//

xml/System.Data.Common/DbParameter.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,16 +677,16 @@
677677
## Remarks
678678
<xref:System.Data.Common.DbParameter.SourceColumnNullMapping%2A> is used by the <xref:System.Data.Common.DbCommandBuilder> to correctly generate update commands when dealing with nullable columns. Generally, use of <xref:System.Data.Common.DbParameter.SourceColumnNullMapping%2A> is limited to developers inheriting from <xref:System.Data.Common.DbCommandBuilder>.
679679
680-
<xref:System.Data.Common.DbCommandBuilder> uses this property to determine whether the source column is nullable, and sets this property to `true` if it is nullable, and `false` if it is not. When <xref:System.Data.Common.DbCommandBuilder> is generating its Update statement, it examines the <xref:System.Data.Common.DbParameter.SourceColumnNullMapping%2A> for each parameter. If the property is `true`, <xref:System.Data.Common.DbCommandBuilder> generates a WHERE clauses like the following (in this query expression, "FieldName" represents the name of the field):
680+
<xref:System.Data.Common.DbCommandBuilder> uses this property to determine whether the source column is nullable, and sets this property to `true` if it is nullable, and `false` if it is not. When <xref:System.Data.Common.DbCommandBuilder> generates its Update statement, it examines the <xref:System.Data.Common.DbParameter.SourceColumnNullMapping%2A> for each parameter. If the property is `true`, <xref:System.Data.Common.DbCommandBuilder> generates a WHERE clauses like the following (in this query expression, "FieldName" represents the name of the field):
681681
682-
```
682+
```tsql
683683
((@IsNull_FieldName = 1 AND FieldName IS NULL) OR
684684
(FieldName = @Original_FieldName))
685685
```
686686
687687
If <xref:System.Data.Common.DbParameter.SourceColumnNullMapping%2A> for the field is `false`, <xref:System.Data.Common.DbCommandBuilder> generates the following WHERE clause:
688688
689-
```
689+
```tsql
690690
FieldName = @OriginalFieldName
691691
```
692692

0 commit comments

Comments
 (0)