Skip to content

Create Method ​

Definition ​

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

Overloads ​

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.

IDatabaseSession Create() ​

csharp
IDatabaseSession Create()

Creates a new database session using the default registration name defined in the factory options.

Returns ​

A newly created IDatabaseSession instance.

Remarks ​

This method resolves the default registration configured for the factory and creates a session from that registration.

IDatabaseSession Create(string name) ​

csharp
IDatabaseSession Create(string name)

Creates a new database session using the named registration.

Parameters ​

NameDescription
nameThe logical registration name used to resolve the database session configuration.

Returns ​

A newly created IDatabaseSession instance.

Remarks ​

Registration names are typically resolved using a case-insensitive comparison. Implementations may create sessions from a registered DatabaseConfig or from provider-specific settings such as database type and connection string.