logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class PersistenceUseCases

    Aggregates all persistence-related use cases for easy access and management.

    Inheritance
    object
    PersistenceUseCases
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Persistence.Application.UseCases
    Assembly: Serenity.Global.Application.dll
    Syntax
    public class PersistenceUseCases

    Constructors

    PersistenceUseCases(PersistenceSaveBytes, PersistenceLoadBytes, PersistenceSaveObject, PersistenceLoadObject, PersistenceAppendBytes)

    Initializes a new instance of the PersistenceUseCases class with the provided use cases.

    Declaration
    public PersistenceUseCases(PersistenceSaveBytes saveBytes, PersistenceLoadBytes loadBytes, PersistenceSaveObject saveObject, PersistenceLoadObject loadObject, PersistenceAppendBytes appendBytes)
    Parameters
    Type Name Description
    PersistenceSaveBytes saveBytes

    The use case for saving bytes.

    PersistenceLoadBytes loadBytes

    The use case for loading bytes.

    PersistenceSaveObject saveObject

    The use case for saving objects.

    PersistenceLoadObject loadObject

    The use case for loading objects.

    PersistenceAppendBytes appendBytes

    The use case for appending bytes.

    Fields

    AppendBytes

    Declaration
    public PersistenceAppendBytes AppendBytes
    Field Value
    Type Description
    PersistenceAppendBytes

    Use case for appending a byte array to an existing blob.

    LoadBytes

    Declaration
    public PersistenceLoadBytes LoadBytes
    Field Value
    Type Description
    PersistenceLoadBytes

    Use case for loading a byte array from the blob store.

    LoadObject

    Declaration
    public PersistenceLoadObject LoadObject
    Field Value
    Type Description
    PersistenceLoadObject

    Use case for loading a deserialized object from the blob store.

    SaveBytes

    Declaration
    public PersistenceSaveBytes SaveBytes
    Field Value
    Type Description
    PersistenceSaveBytes

    Use case for saving a byte array to the blob store.

    SaveObject

    Declaration
    public PersistenceSaveObject SaveObject
    Field Value
    Type Description
    PersistenceSaveObject

    Use case for saving a serialized object to the blob store.

    In this article
    © 2026 Serenity. All Rights Reserved