logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    UnityPersistenceBackendDefinition
    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.

    In this article
    © 2026 Serenity. All Rights Reserved