logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class DatabaseDriverManifest

    Everything one StructuredPersistence backend needs on disk before its scripting define may be set: the assemblies, the native binaries, and the define itself.

    Inheritance
    object
    DatabaseDriverManifest
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.StructuredPersistence.Infrastructure.Editor.Drivers
    Assembly: Serenity.UnityStructuredPersistence.Infrastructure.Editor.dll
    Syntax
    public sealed class DatabaseDriverManifest
    Remarks

    The define belongs here because setting it is the dangerous half of the transaction. With the define set and the driver absent, the provider asmdef's overrideReferences cannot resolve and the whole project stops compiling with no obvious cause; with the driver present and the define absent, the backend factory logs a warning and falls back. So the manifest exists to make "install, then verify, then define" checkable in that order, and the define is one of the facts being checked rather than something a caller has to know separately.

    Constructors

    DatabaseDriverManifest(string, string, IReadOnlyList<DriverPackage>, IReadOnlyList<DriverNativeBinary>)

    Describes one backend's driver requirements.

    Declaration
    public DatabaseDriverManifest(string backendName, string scriptingDefine, IReadOnlyList<DriverPackage> packages, IReadOnlyList<DriverNativeBinary> nativeBinaries)
    Parameters
    Type Name Description
    string backendName
    string scriptingDefine
    IReadOnlyList<DriverPackage> packages
    IReadOnlyList<DriverNativeBinary> nativeBinaries

    Properties

    BackendName

    Declaration
    public string BackendName { get; }
    Property Value
    Type Description
    string

    Backend name as the reader sees it in the inspector, e.g. Postgres.

    NativeBinaries

    Declaration
    public IReadOnlyList<DriverNativeBinary> NativeBinaries { get; }
    Property Value
    Type Description
    IReadOnlyList<DriverNativeBinary>

    Native binaries that must be present, empty for backends that need none.

    Packages

    Declaration
    public IReadOnlyList<DriverPackage> Packages { get; }
    Property Value
    Type Description
    IReadOnlyList<DriverPackage>

    Managed assemblies that must be present.

    ScriptingDefine

    Declaration
    public string ScriptingDefine { get; }
    Property Value
    Type Description
    string

    Scripting define that enables this backend's provider assembly.

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved