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.
Namespace: Serenity.Global.Infrastructure.Settings
Assembly: Serenity.UnityGlobal.Infrastructure.dll
Syntax
public class UnityPersistenceBackendDefinition : ScriptableObject
Constructors
UnityPersistenceBackendDefinition()
Declaration
public UnityPersistenceBackendDefinition()
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. |