Search Results for

    Show / Hide Table of Contents
    View Source

    Class SqliteExceptionExtensions

    SQLite-specific exception helpers for code running on the EF Core persistence stack.

    Inheritance
    object
    Namespace: Umbraco.Cms.Persistence.EFCore
    Assembly: Umbraco.Cms.Persistence.EFCore.dll
    Syntax
    public static class SqliteExceptionExtensions
    Remarks

    A parallel helper exists at Umbraco.Cms.Persistence.Sqlite.Services.SqliteExceptionExtensions for the NPoco stack. Both stacks are independent (neither references the other) so the small duplication is intentional — keeps the layering clean.

    Methods

    View Source

    IsBusyOrLocked(SqliteException)

    Determines if the SQLite exception is a BUSY or LOCKED error.

    Declaration
    public static bool IsBusyOrLocked(this SqliteException ex)
    Parameters
    Type Name Description
    SqliteException ex

    The SQLite exception to check.

    Returns
    Type Description
    bool

    true if the error is BUSY, LOCKED, or LOCKED_SHAREDCACHE; otherwise false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX