Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1845,15 +1845,15 @@ The expressions produced by <paramref name="outerKey" /> and <paramref name="inn
<format type="text/markdown"><![CDATA[

## Remarks
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`:
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`:

```
```csharp
outer.Join(inner, o => o.Property("ID"), i => i.Property("ID"), (o, i) => o.Property("Name"))
```

(`TSelector` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).

```
```csharp
outer.Join(inner, o => o.Property("ID"), i => i.Property("ID"), (o, i) => new { OName = o.Property("Name"), IName = i.Property("Name") })
```

Expand Down Expand Up @@ -3451,15 +3451,15 @@ The result of <paramref name="apply" /> contains a name or expression that is no
<format type="text/markdown"><![CDATA[

## Remarks
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`:
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`:

```
```csharp
source.Select(x => x.Property("Name"))
```

`TProjection` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).
(`TProjection` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).

```
```csharp
source.Select(x => new { Name = x.Property("Name") })
```

Expand Down Expand Up @@ -3548,15 +3548,15 @@ The expression produced by <paramref name="apply" /> does not have a collection
<format type="text/markdown"><![CDATA[

## Remarks
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`:
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`:

```
```csharp
source.SelectMany(x => x.Property("RelatedCollection"), (source, apply) => apply.Property("Name"))
```

(`TSelector` is <xref:System.Data.Common.CommandTrees.DbPropertyExpression>).

```
```csharp
source.SelectMany(x => x.Property("RelatedCollection"), (source, apply) => new { SourceName = source.Property("Name"), RelatedName = apply.Property("Name") })
```

Expand Down
12 changes: 6 additions & 6 deletions xml/System.Data.Common/DbConnectionStringBuilder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ builder["Initial Catalog"] = "AdventureWorks;NewValue=Bad";

The result is the following connection string that handles the invalid value in a safe manner:

```
```txt
data source=(local);integrated security=True;
initial catalog="AdventureWorks;NewValue=Bad"
```
Expand Down Expand Up @@ -676,7 +676,7 @@ initial catalog="AdventureWorks;NewValue=Bad"
## Remarks
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.

```
```txt
"Persist Security Info=False;Integrated Security=SSPI;Initial Catalog=AdventureWorks;Data Source=(local)"
```

Expand Down Expand Up @@ -763,7 +763,7 @@ initial catalog="AdventureWorks;NewValue=Bad"

This code produces the following output:

```
```txt
Contents of the DbConnectionStringBuilder:
provider="Provider=Microsoft.Jet.OLEDB.4.0";data
source=C:\MyExcel.xls;extended
Expand Down Expand Up @@ -902,7 +902,7 @@ The collection contains the key "Data Source".

This sample displays the following output:

```
```txt
builder1 = value1=SomeValue;value2=20;value3=30;value4=40
builder2 = value2=20;value3=30;value4=40;value1=SomeValue
builder3 = value2=20;value3=30;value4=40;value1=SOMEVALUE
Expand Down Expand Up @@ -1297,7 +1297,7 @@ builder2.EquivalentTo(builder3) = False

This sample displays the following output:

```
```txt
Removed 'Provider'
data source=C:\Demo.mdb;jet oledb:system database=system.mdw
Unable to remove 'User ID'
Expand Down Expand Up @@ -2817,7 +2817,7 @@ This member is an explicit interface member implementation. It can be used only

The sample displays the following results:

```
```txt
Provider=sqloledb
DATA SOURCE=192.168.168.1,1433
Unable to retrieve value for //InvalidKey//
Expand Down
6 changes: 3 additions & 3 deletions xml/System.Data.Common/DbParameter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -677,16 +677,16 @@
## Remarks
<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>.

<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):
<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):

```
```tsql
((@IsNull_FieldName = 1 AND FieldName IS NULL) OR
(FieldName = @Original_FieldName))
```

If <xref:System.Data.Common.DbParameter.SourceColumnNullMapping%2A> for the field is `false`, <xref:System.Data.Common.DbCommandBuilder> generates the following WHERE clause:

```
```tsql
FieldName = @OriginalFieldName
```

Expand Down
Loading