Skip to content

Commit 3e398a6

Browse files
author
electricessence
authored
Update README.md
1 parent 469e910 commit 3e398a6

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The provided expressive command classes allow for an expressive means to append
1212

1313
Extensions are provied to create commands from connection factories.
1414

15-
### Example
15+
##### Example
1616

1717
```cs
1818
var result = connectionFactory
@@ -55,7 +55,18 @@ In order to keep connection open time to a minimum, some methods cache data befo
5555

5656
Synchronously queries (pulls all the data). Then using the provided type `T` entity, the data is coerced by which properties intersect with the ones available to the ```IDataReader```.
5757

58-
Optionally a
58+
Optionally a field to column override map can be passed as a parameter. If a column is set as `null` then that field is ignored (not applied to the model).
59+
60+
##### Examples
61+
62+
```cs
63+
var people = cmd.Results<Person>();
64+
```
65+
66+
```cs
67+
// If the database fields don't map exactly.
68+
var people = cmd.Results<Person>((Field:"FirstName",Column:"first_name"));
69+
```
5970

6071
#### `Retrieve()` and `RetrieveAsync()`
6172

0 commit comments

Comments
 (0)