Appearance
DbSessionFactoryOptionsBuilder Class
Definition
Builds an immutable DbSessionFactoryOptions instance from the registrations currently added to the builder.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Constructors
| Name | Description |
|---|---|
DbSessionFactoryOptionsBuilder() |
Methods
| Name | Description |
|---|---|
DbSessionFactoryOptionsBuilder Add(string name, DatabaseConfig configuration, ISqlGeneratorOptions sqlGeneratorOptions = null, bool isDefault = null, bool openOnConnect = null) | Adds a named database registration that creates sessions from a structured DatabaseConfig instance. |
DbSessionFactoryOptionsBuilder Add(string name, DatabaseType dbType, string connectionString, ISqlGeneratorOptions sqlGeneratorOptions = null, LogConfig logConfig = null, bool isDefault = null, bool openOnConnect = null) | Adds a named database registration that creates sessions from a provider type and raw connection string. |
DbSessionFactoryOptionsBuilder SetDefaultName(string name) | Sets the default registration name to be used when no explicit name is provided. |
Remarks
Default resolution occurs in the following order: The explicit default name set on the builder.The first registration added to the builder. Registration names are treated as case-insensitive for duplicate detection.