Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IEfCoreScope<TDbContext>

    Namespace: Umbraco.Cms.Persistence.EFCore.Scoping
    Assembly: Umbraco.Cms.Persistence.EFCore.dll
    Syntax
    public interface IEfCoreScope<TDbContext> : ICoreScope, IInstanceIdentifiable
    Type Parameters
    Name Description
    TDbContext

    Properties

    View Source

    Notifications

    Gets the scope notification publisher

    Declaration
    IScopedNotificationPublisher Notifications { get; }
    Property Value
    Type Description
    IScopedNotificationPublisher
    View Source

    ScopeContext

    Declaration
    IScopeContext ScopeContext { get; set; }
    Property Value
    Type Description
    IScopeContext

    Methods

    View Source

    ExecuteWithContextAsync<T>(Func<TDbContext, Task<T>>)

    Executes the given function on the database.

    Declaration
    Task<T> ExecuteWithContextAsync<T>(Func<TDbContext, Task<T>> method)
    Parameters
    Type Name Description
    Func<TDbContext, Task<T>> method

    Function to execute.

    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T

    Type to use and return.

    View Source

    ExecuteWithContextAsync<T>(Func<TDbContext, Task>)

    Executes the given function on the database.

    Declaration
    Task ExecuteWithContextAsync<T>(Func<TDbContext, Task> method)
    Parameters
    Type Name Description
    Func<TDbContext, Task> method

    Function to execute.

    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T

    Type to use and return.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Notifications
      • ScopeContext
    • Methods
      • ExecuteWithContextAsync<T>(Func<TDbContext, Task<T>>)
      • ExecuteWithContextAsync<T>(Func<TDbContext, Task>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX