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: xml/System.Data.Common.CommandTrees.ExpressionBuilder/DbExpressionBuilder.xml
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1845,15 +1845,15 @@ The expressions produced by <paramref name="outerKey" /> and <paramref name="inn
1845
1845
<formattype="text/markdown"><![CDATA[
1846
1846
1847
1847
## 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`:
1849
1849
1850
-
```
1850
+
```csharp
1851
1851
outer.Join(inner, o => o.Property("ID"), i => i.Property("ID"), (o, i) => o.Property("Name"))
1852
1852
```
1853
1853
1854
1854
(`TSelector` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).
1855
1855
1856
-
```
1856
+
```csharp
1857
1857
outer.Join(inner, o => o.Property("ID"), i => i.Property("ID"), (o, i) => new { OName = o.Property("Name"), IName = i.Property("Name") })
1858
1858
```
1859
1859
@@ -3451,15 +3451,15 @@ The result of <paramref name="apply" /> contains a name or expression that is no
3451
3451
<formattype="text/markdown"><![CDATA[
3452
3452
3453
3453
## 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`:
3455
3455
3456
-
```
3456
+
```csharp
3457
3457
source.Select(x => x.Property("Name"))
3458
3458
```
3459
3459
3460
-
`TProjection` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).
3460
+
(`TProjection` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).
3461
3461
3462
-
```
3462
+
```csharp
3463
3463
source.Select(x => new { Name = x.Property("Name") })
3464
3464
```
3465
3465
@@ -3548,15 +3548,15 @@ The expression produced by <paramref name="apply" /> does not have a collection
3548
3548
<formattype="text/markdown"><![CDATA[
3549
3549
3550
3550
## 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`:
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.
Copy file name to clipboardExpand all lines: xml/System.Data.Common/DbParameter.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -677,16 +677,16 @@
677
677
## Remarks
678
678
<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>.
679
679
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):
681
681
682
-
```
682
+
```tsql
683
683
((@IsNull_FieldName = 1 AND FieldName IS NULL) OR
684
684
(FieldName = @Original_FieldName))
685
685
```
686
686
687
687
If <xref:System.Data.Common.DbParameter.SourceColumnNullMapping%2A> for the field is `false`, <xref:System.Data.Common.DbCommandBuilder> generates the following WHERE clause:
0 commit comments