ReportRepository

Namespace: Babel.Data Assembly: Babel.Data.dll

A report repository.

public class ReportRepository : GenericRepository<Report>, IReportRepository, IGenericRepository<Report>

Inheritance

objectGenericRepository<Report>ReportRepository

Implements

IReportRepository, IGenericRepository<Report>

Inherited Members

GenericRepository<Report>.Get(Expression<Func<Report, bool>>, Func<IQueryable<Report>, IOrderedQueryable<Report>>, string, string, int?, int?), GenericRepository<Report>.GetAsync(Expression<Func<Report, bool>>, Func<IQueryable<Report>, IOrderedQueryable<Report>>, string, string, int?, int?, CancellationToken), GenericRepository<Report>.QueryAsync(string, string, string, string, int?, int?, CancellationToken), GenericRepository<Report>.GetById(params object[]), GenericRepository<Report>.GetByIdAsync(params object[]), GenericRepository<Report>.GetByIdAsync(object[], CancellationToken), GenericRepository<Report>.CountAsync(Expression<Func<Report, bool>>, CancellationToken), GenericRepository<Report>.CountAsync(string, CancellationToken), GenericRepository<Report>.Insert(Report), GenericRepository<Report>.InsertAsync(Report, CancellationToken), GenericRepository<Report>.Update(Report), GenericRepository<Report>.Delete(params object[]), GenericRepository<Report>.Delete(Report), GenericRepository<Report>.Save(), GenericRepository<Report>.SaveAsync(CancellationToken), GenericRepository<Report>.DbSet, GenericRepository<Report>.Context, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ReportRepository(BabelDbContext)

Constructor.

public ReportRepository(BabelDbContext context)

Parameters

NameDescription

The context.

Methods

Delete(IEnumerable<int>)

Deletes the given reportIds.

public void Delete(IEnumerable<int> reportIds)

Parameters

NameDescription

reportIds IEnumerable<int>

The report Identifiers to delete.

GetReportAsync(int)

Gets report asynchronous.

public Task<Report> GetReportAsync(int reportId)

Parameters

NameDescription

reportId int

Identifier for the report.

Returns

NameDescription

An asynchronous result that yields the report.

GetReportCountersAsync(int)

Gets report counters asynchronous.

public Task<ReportCounters> GetReportCountersAsync(int reportId)

Parameters

NameDescription

reportId int

Identifier for the report.

Returns

NameDescription

An asynchronous result that yields the report counters.

GetReportsAsync(string, DateTime?, DateTime?, int?, int?, string, string)

Gets reports asynchronous.

public Task<List<Report>> GetReportsAsync(string name, DateTime? start, DateTime? end, int? skip, int? take, string include, string sort)

Parameters

NameDescription

name string

The name.

start DateTime?

The start.

The end.

skip int?

The skip.

take int?

The take.

include string

The include.

sort string

The sort.

Returns

NameDescription

An asynchronous result that yields the reports.

GetReportsCountAsync(DateTime, DateTime)

Gets reports count asynchronous.

public Task<int> GetReportsCountAsync(DateTime start, DateTime end)

Parameters

NameDescription

start DateTime

The start.

The end.

Returns

NameDescription

An asynchronous result that yields the reports count.

GetReportsCountAsync(string, DateTime?, DateTime?)

Gets reports count asynchronous.

public Task<int> GetReportsCountAsync(string name, DateTime? start, DateTime? end)

Parameters

NameDescription

name string

The name.

start DateTime?

The start.

The end.

Returns

NameDescription

An asynchronous result that yields the reports count.

GetReportsSummaryAsync(DateTime, DateTime)

Gets reports summary asynchronous.

public Task<List<ReportSummary>> GetReportsSummaryAsync(DateTime startDate, DateTime endDate)

Parameters

NameDescription

startDate DateTime

The start date.

endDate DateTime

The end date.

Returns

NameDescription

An asynchronous result that yields the reports summary.

Last updated