Skip to content

IDbSessionFactory Interface ​

Definition ​

Defines a factory for creating database sessions from named registrations.

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Methods ​

NameDescription
IDatabaseSession Create()Creates a new database session using the default registration name defined in the factory options.
IDatabaseSession Create(string name)Creates a new database session using the named registration.
Task<IDatabaseSession> CreateAsync()Asynchronously creates a new database session using the default registration name defined in the factory options.
Task<IDatabaseSession> CreateAsync(string name)Asynchronously creates a new database session using the named registration.

Remarks ​

An IDbSessionFactory resolves IDatabaseSession instances using configuration registered under a logical name.

Implementations typically support both a default registration and explicitly named registrations, with synchronous and asynchronous creation paths.