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: README.md
+27-34Lines changed: 27 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,9 +65,9 @@ The default JSON settings structure is as follows:
65
65
66
66
# DatabaseContextScope
67
67
68
-
The `DatabaseContextService` contains a collection of the `DatabaseContext` instances created by `IDatabaseContextFactory`. However, since the `DatabaseContextService` is a singleton the same collection will be used in all thread contexts. This includes not only the same execution context, but also "peered" execution context running in parallel.
68
+
The `DatabaseContextService` contains a collection of the `DatabaseContext` instances created by `IDatabaseContextFactory`. However, since the `DatabaseContextService` is a singleton the same collection will be used in all thread contexts. This includes not only the same execution context, but also "peered" execution contexts running in parallel.
69
69
70
-
To enable an individual execution/thread context-specific collection which also enables async context flow wrap the initial database context creation in a new `DatabaseContextScope()`:
70
+
To enable an individual execution/thread context-specific collection, which also enables async context flow, wrap the initial database context creation in a new `DatabaseContextScope()`:
71
71
72
72
```c#
73
73
using (newDatabaseContextScope())
@@ -82,6 +82,8 @@ In order to access a database we need a database connection. A database connect
82
82
83
83
The `DatabaseContextFactory` implementation makes use of an `IDbConnectionFactory` implementation which creates a `System.Data.IDbConnection` by using the provider name and connection string, which is obtained from the registered connection name. An `IDbCommandFactory` creates a `System.Data.IDbCommand` by using an `IDbConnection` instance.
84
84
85
+
If the connection name is ommitted the `DefaultConnectionStringName` option will be used.
This will return the typed value of the specified column as contained in the passed-in `DataRow`.
172
165
173
-
# IDatabaseGateway
174
-
175
-
The `DatabaseGateway` is used to execute `IQuery` instances in order return data from, or make changes to, the underlying data store. If there is no active open `IDatabaseContext` returned by the `DatabaseContextService.Current` an `InvalidOperationException` will be thrown.
166
+
# DatabaseContextExtensions
176
167
177
-
The following sections each describe the methods available in the `IDatabaseGateway` interface.
168
+
The following sections each describe the extension methods available on an `IDatabaseContext` instance.
0 commit comments