View Source
Interface IEfCoreScope<TDbContext>
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
View Source
ScopeContext
Declaration
IScopeContext ScopeContext { get; set; }
Property Value
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 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 Parameters
Name |
Description |
T |
Type to use and return.
|