Show / Hide Table of Contents

Interface IResponseRepository

Namespace: Volo.Forms.Responses
Assembly: Volo.Forms.Domain.dll
Syntax
public interface IResponseRepository : IBasicRepository<FormResponse, Guid>, IBasicRepository<FormResponse>, IReadOnlyBasicRepository<FormResponse>, IRepository, IReadOnlyBasicRepository<FormResponse, Guid>

Methods

GetByUserId(Guid, CancellationToken)

Declaration
Task<List<FormWithResponse>> GetByUserId(Guid userId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid userId
CancellationToken cancellationToken
Returns
Type Description
Task<List<FormWithResponse>>

GetCountAsync(string, CancellationToken)

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

GetCountByFormIdAsync(Guid, string, CancellationToken)

Declaration
Task<long> GetCountByFormIdAsync(Guid formId, string filter = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid formId
string filter
CancellationToken cancellationToken
Returns
Type Description
Task<long>

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

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

GetListByFormIdAsync(Guid, int, int, string, string, CancellationToken)

Declaration
Task<List<FormResponse>> GetListByFormIdAsync(Guid formId, int skipCount = 0, int maxResultCount = 2147483647, string sorting = null, string filter = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid formId
int skipCount
int maxResultCount
string sorting
string filter
CancellationToken cancellationToken
Returns
Type Description
Task<List<FormResponse>>

UserResponseExistsAsync(Guid, Guid, CancellationToken)

Declaration
Task<bool> UserResponseExistsAsync(Guid formId, Guid userId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid formId
Guid userId
CancellationToken cancellationToken
Returns
Type Description
Task<bool>
In this article
Back to top Powered by Volosoft