Interface IDatabaseClientBuilder
Builds an implementation of a DAO interface whose methods are annotated with SqlQueryAttribute or SqlUpdateAttribute.
Namespace: Activout.DatabaseClient
Assembly: Activout.DatabaseClient.dll
Syntax
public interface IDatabaseClientBuilder
Methods
| Edit this page View SourceBuild<T>()
Creates an implementation of the DAO interface T.
Declaration
T Build<T>() where T : class
Returns
| Type | Description |
|---|---|
| T | The DAO implementation. |
Type Parameters
| Name | Description |
|---|---|
| T | The DAO interface. |
With(IDatabaseGateway)
Sets the gateway that executes the SQL.
Declaration
IDatabaseClientBuilder With(IDatabaseGateway gateway)
Parameters
| Type | Name | Description |
|---|---|---|
| IDatabaseGateway | gateway | The gateway, for example |
Returns
| Type | Description |
|---|---|
| IDatabaseClientBuilder | This builder. |