SAIF.NetCore.NHibernate API reference¶
This page lists all 23 public types exposed by SAIF.NetCore.NHibernate. Each type links to its full API reference page. Six additional types (StatefulSessionStrategy, StatelessSessionStrategy, SessionHelperBase, OracleSessionHelper, SqlServerSessionHelper, PostgreSqlSessionHelper) exist in the assembly but are declared internal and are therefore not part of the public API documented here.
Types¶
| Type | Kind | Namespace | Purpose |
|---|---|---|---|
| UnitOfWorkAccessor | Class | SAIF.NetCore.NHibernate |
DI-friendly facade that resolves named options and hands out a new unit of work per call. |
| Repository\<TEntity> | Class | SAIF.NetCore.NHibernate |
Generic entity-level CRUD/query surface backed by the unit of work's session strategy. |
| UnitOfWork | Class | SAIF.NetCore.NHibernate |
Owns the single transaction and session for one logical unit of database work. |
| BaseConfiguration | Class (abstract) | SAIF.NetCore.NHibernate |
Shared FluentNHibernate configuration assembly/mapping-loading logic for all three engines. |
| OracleConfiguration | Class | SAIF.NetCore.NHibernate |
Oracle-specific driver configuration (ODP.NET managed driver, Oracle10 dialect). |
| SqlConfiguration | Class | SAIF.NetCore.NHibernate |
SQL Server-specific driver configuration (MsSql2008 dialect). |
| PostGreSqlConfiguration | Class | SAIF.NetCore.NHibernate |
PostgreSQL-specific driver configuration (Npgsql standard dialect). |
| UnitOfWorkFactory | Class | SAIF.NetCore.NHibernate.Factories |
Builds/caches session factories and NHibernate configurations, and assembles units of work. |
| SqlDebugOutputInterceptor | Class | SAIF.NetCore.NHibernate.Factories.Configuration |
NHibernate interceptor that traces prepared SQL statements while a debugger is attached. |
| IRepository\<TEntity> | Interface | SAIF.NetCore.NHibernate.Interfaces |
Contract for entity-level CRUD/query operations implemented by Repository<TEntity>. |
| INhConfiguration | Interface | SAIF.NetCore.NHibernate.Interfaces |
Contract for building an NHibernate Configuration, implemented by BaseConfiguration. |
| ISessionHelper | Interface | SAIF.NetCore.NHibernate.Interfaces |
Contract exposing the database-sourced SystemDate. |
| ISessionStrategy | Interface | SAIF.NetCore.NHibernate.Interfaces |
Contract abstracting stateful (ISession) vs. stateless (IStatelessSession) NHibernate sessions. |
| IUnitOfWork | Interface | SAIF.NetCore.NHibernate.Interfaces |
Contract for the transaction/session lifecycle implemented by UnitOfWork. |
| IUnitOfWorkFactory | Interface | SAIF.NetCore.NHibernate.Interfaces |
Contract for creating a unit of work from UnitOfWorkOptions, implemented by UnitOfWorkFactory. |
| IOracleUnitOfWorkFactory | Interface | SAIF.NetCore.NHibernate.Interfaces |
Confirmed-empty marker sub-interface of IUnitOfWorkFactory; appears intended for Oracle-specific factory registrations, though no concrete type in this library implements it.* |
| ISqlUnitOfWorkFactory | Interface | SAIF.NetCore.NHibernate.Interfaces |
Confirmed-empty marker sub-interface of IUnitOfWorkFactory; appears intended for SQL Server-specific factory registrations, though no concrete type in this library implements it.* |
| IPostGreSqlUnitOfWorkFactory | Interface | SAIF.NetCore.NHibernate.Interfaces |
Confirmed-empty marker sub-interface of IUnitOfWorkFactory; appears intended for PostgreSQL-specific factory registrations, though no concrete type in this library implements it.* |
| IServicesNhibernateExtensions | Class (static) | SAIF.NetCore.NHibernate.Extensions |
Obsolete legacy registration API; every member is a compile-time error and a functional no-op. |
| IServicesCollectionExtensions | Class (static) | SAIF.NetCore.NHibernate.Extensions |
Current IServiceCollection registration API (AddNhibernateServices). |
| ConfigureUnitOfWorkOptions | Class (abstract) | SAIF.NetCore.NHibernate.Options |
Base class consuming applications derive from to configure one named database connection. |
| DatabaseType | Enum | SAIF.NetCore.NHibernate.Options |
Selects which of the three supported database engines a unit of work targets. |
| UnitOfWorkOptions | Class | SAIF.NetCore.NHibernate.Options |
Per-named-connection options bag (connection string, engine, batch size, SQL logging flags). |
Related documentation¶
- Index
- Overview
- Architecture
- Operations and processes
- Business rules
- Configuration
- Service registration
Note: Statements marked with
*were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts.
Sources¶
src/SAIF.NetCore.Nhibernate/SAIF.NetCore.NHibernate/SAIF.NetCore.NHibernate/