Interface IDbContext
Assembly: NotifyHub.NotificationService.Application.dll
Syntax
public interface IDbContext
Properties
|
Edit this page
View Source
CurrentTransaction
Получить текущую транзакцию
Declaration
IDbContextTransaction? CurrentTransaction { get; }
Property Value
|
Edit this page
View Source
NotificationLogs
Declaration
DbSet<NotificationLog> NotificationLogs { get; set; }
Property Value
Methods
|
Edit this page
View Source
BeginTransactionAsync(CancellationToken)
Declaration
Task<IDbContextTransaction> BeginTransactionAsync(CancellationToken cancellationToken = default)
Parameters
Returns
|
Edit this page
View Source
Entry<T>(T)
Получает объект для указанной сущности,
позволяя управлять её состоянием и получать доступ к данным отслеживания.
Declaration
EntityEntry<T> Entry<T>(T entity) where T : class
Parameters
Type |
Name |
Description |
T |
entity |
Экземпляр сущности, для которого требуется получить entry.
|
Returns
Type Parameters
Name |
Description |
T |
Тип сущности.
|
|
Edit this page
View Source
SaveChangesAsync(CancellationToken)
Declaration
Task<int> SaveChangesAsync(CancellationToken cancellationToken = default)
Parameters
Returns
|
Edit this page
View Source
Set<T>()
Универсальный доступ к DbSet по типу сущности
Declaration
DbSet<T> Set<T>() where T : class
Returns
Type |
Description |
DbSet<T> |
|
Type Parameters