Class OrmConfiguration
- Namespace
- OpenSettings.Configurations
- Assembly
- OpenSettings.dll
Represents the configuration for an Object-Relational Mapper (Orm) for data access. This class allows for configuring the DbContext used for persistence, including options for pooling and the database provider.
public class OrmConfiguration
- Inheritance
-
OrmConfiguration
- Inherited Members
Properties
ConfigureDbContext
Callback to configure the DbContext.
[JsonIgnore]
public Action<DbContextOptionsBuilder> ConfigureDbContext { get; set; }
Property Value
- Action<DbContextOptionsBuilder>
The configure database context.
DbProviderName
Gets configured DbContext provider name
public string DbProviderName { get; }
Property Value
- string
A string representing the name of the database provider. This value is set internally and is not meant to be changed directly.
EnablePooling
Gets or sets a value indicating whether DbContext pooling is enabled. Enabling pooling can improve performance by reusing database contexts instead of creating new instances.
public bool EnablePooling { get; set; }
Property Value
PoolSize
Gets or sets the pool size to use when DbContext pooling is enabled. If not set, the default pool size will be used by the provider.
public int? PoolSize { get; set; }