HAKOM.Persistence.Sql.PostgreSql.Net Assembly
Provides the PostgreSQL-specific SQL persistence implementation for HAKOM applications, supplying concrete connection, command, parameter, and data reader types backed by Npgsql.
Remarks
Section titled “Remarks”This assembly contains the PostgreSqlStorageProvider which derives from
SqlStorageProvider<TConnection,TCommand,TNativeParameter,TReader,TParameter,TParameterFactory>
and wires up NpgsqlConnection, NpgsqlCommand, NpgsqlParameter,
and NpgsqlDataReader as the concrete ADO.NET types.
Key PostgreSQL-specific behaviors include:
- Boolean columns can be read from native
booleanorsmallinttypes. bytevalues are mapped toNpgsqlDbType.Smallintbecause PostgreSQL does not have a single-byte integer type.
Register PostgreSQL services via the extension method in ContainerExtensions:
using HAKOM.Persistence.Sql.PostgreSql.Net.Api.Extensions;
container.UsePostgreSql();| Namespaces | |
|---|---|
| HAKOM.Persistence.Sql.PostgreSql.Net.Api | Contains the public API surface of the PostgreSQL persistence module, including PostgreSQL-specific parameter, parameter factory, and storage provider interfaces. |
| HAKOM.Persistence.Sql.PostgreSql.Net.Api.Exceptions | Contains exception types specific to the PostgreSQL persistence provider. |
| HAKOM.Persistence.Sql.PostgreSql.Net.Api.Extensions | Extension methods for registering PostgreSQL persistence services with the IContainer. |
Was this page helpful?Thanks for your feedback!