Class UnityPersistenceBackendDefinition
Unity ScriptableObject-based pre-boot seam for swapping the persistence data backend without touching
Serenity.Installation.UnitySerenityInstaller.
Assign an instance to UnitySerenityInstaller.PersistenceBackendDefinition to boot with a custom
PersistenceInstaller subclass (e.g. a Postgres
or cloud-save backend) instead of the built-in file backend. Left empty, boot behaves exactly as before.
Implements
Namespace: Serenity.Global.Infrastructure.Settings
Assembly: Serenity.UnityGlobal.Infrastructure.dll
Syntax
public class UnityPersistenceBackendDefinition : ScriptableObject, IFoundationSettings
Constructors
UnityPersistenceBackendDefinition()
Declaration
public UnityPersistenceBackendDefinition()
Fields
Guid
Declaration
public string Guid
Field Value
| Type | Description |
|---|---|
| string | GUID for this persistence backend asset. |
Id
Declaration
public string Id
Field Value
| Type | Description |
|---|---|
| string | Unique identifier for this persistence backend asset. |
Properties
ConstructorArgs
Gets or sets the string arguments passed to the installer's constructor.
Declaration
public List<string> ConstructorArgs { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | List of constructor argument strings. |
InstallerTypeName
Gets or sets the fully qualified name of the PersistenceInstaller subclass to activate.
Declaration
public string InstallerTypeName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The installer type name. |
PassCompanyAndProduct
Gets or sets whether the app's company and product name are prepended to the constructor arguments.
Declaration
public bool PassCompanyAndProduct { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | True to prepend company and product name; otherwise false. |