Show / Hide Table of Contents

Class EfCoreShortenedUrlRepository

Inheritance
object
EfCoreShortenedUrlRepository
Implements
IShortenedUrlRepository
IBasicRepository<ShortenedUrl, Guid>
IBasicRepository<ShortenedUrl>
IReadOnlyBasicRepository<ShortenedUrl>
IRepository
IReadOnlyBasicRepository<ShortenedUrl, Guid>
Namespace: Volo.CmsKit.UrlShorting
Assembly: Volo.CmsKit.Pro.EntityFrameworkCore.dll
Syntax
public class EfCoreShortenedUrlRepository : EfCoreRepository<ICmsKitProDbContext, ShortenedUrl, Guid>, IShortenedUrlRepository, IBasicRepository<ShortenedUrl, Guid>, IBasicRepository<ShortenedUrl>, IReadOnlyBasicRepository<ShortenedUrl>, IRepository, IReadOnlyBasicRepository<ShortenedUrl, Guid>

Constructors

EfCoreShortenedUrlRepository(IDbContextProvider<ICmsKitProDbContext>)

Declaration
public EfCoreShortenedUrlRepository(IDbContextProvider<ICmsKitProDbContext> dbContextProvider)
Parameters
Type Name Description
IDbContextProvider<ICmsKitProDbContext> dbContextProvider

Methods

FindBySourceUrlAsync(string, CancellationToken)

Declaration
public virtual Task<ShortenedUrl> FindBySourceUrlAsync(string sourceUrl, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string sourceUrl
CancellationToken cancellationToken
Returns
Type Description
Task<ShortenedUrl>

GetCountAsync(string, CancellationToken)

Declaration
public virtual Task<long> GetCountAsync(string filter = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string filter
CancellationToken cancellationToken
Returns
Type Description
Task<long>

GetListAsync(string, string, int, int, CancellationToken)

Declaration
public virtual Task<List<ShortenedUrl>> GetListAsync(string filter = null, string sorting = null, int skipCount = 0, int maxResultCount = 2147483647, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string filter
string sorting
int skipCount
int maxResultCount
CancellationToken cancellationToken
Returns
Type Description
Task<List<ShortenedUrl>>

Implements

IShortenedUrlRepository
Volo.Abp.Domain.Repositories.IBasicRepository<,>
Volo.Abp.Domain.Repositories.IBasicRepository<>
Volo.Abp.Domain.Repositories.IReadOnlyBasicRepository<>
Volo.Abp.Domain.Repositories.IRepository
Volo.Abp.Domain.Repositories.IReadOnlyBasicRepository<,>
In this article
Back to top Powered by Volosoft