Class DapperRepository<TDbContext>
Inheritance
DapperRepository<TDbContext>
Assembly: Volo.Abp.Dapper.dll
Syntax
public class DapperRepository<TDbContext> : IDapperRepository, IUnitOfWorkEnabled where TDbContext : IEfCoreDbContext
Type Parameters
Name |
Description |
TDbContext |
|
Constructors
DapperRepository(IDbContextProvider<TDbContext>)
Declaration
public DapperRepository(IDbContextProvider<TDbContext> dbContextProvider)
Parameters
Properties
CancellationTokenProvider
Declaration
public ICancellationTokenProvider CancellationTokenProvider { get; }
Property Value
CurrentTenant
Declaration
public ICurrentTenant CurrentTenant { get; }
Property Value
DataFilter
Declaration
public IDataFilter DataFilter { get; }
Property Value
DbConnection
Declaration
[Obsolete("Use GetDbConnectionAsync method.")]
public IDbConnection DbConnection { get; }
Property Value
DbTransaction
Declaration
[Obsolete("Use GetDbTransactionAsync method.")]
public IDbTransaction? DbTransaction { get; }
Property Value
LazyServiceProvider
Declaration
public IAbpLazyServiceProvider LazyServiceProvider { get; set; }
Property Value
UnitOfWorkManager
Declaration
public IUnitOfWorkManager UnitOfWorkManager { get; }
Property Value
Methods
GetCancellationToken(CancellationToken)
Declaration
protected virtual CancellationToken GetCancellationToken(CancellationToken preferredValue = default)
Parameters
Returns
GetDbConnectionAsync()
Declaration
public virtual Task<IDbConnection> GetDbConnectionAsync()
Returns
GetDbTransactionAsync()
Declaration
public virtual Task<IDbTransaction?> GetDbTransactionAsync()
Returns
Implements
Extension Methods