public override Task <IPagedResult <RoleReadModel> > FetchPagedListAsync(FilteredPagedRequest request, CancellationToken cancellationToken = default) { return(EntitySet.AsNoTracking().Select(r => new RoleReadModel { Id = r.Id, Name = r.Name, Description = r.Description }).ToPagedListAsync(request, cancellationToken: cancellationToken)); }
public override Task <IPagedResult <ProductModel> > FetchPagedListAsync(FilteredPagedRequest request, CancellationToken cancellationToken = default) { return(EntitySet.AsNoTracking().Select(p => new ProductModel { Id = p.Id, Version = EFCoreShadow.PropertyVersion(p), Title = p.Title, Number = p.Number }).ToPagedListAsync(request, cancellationToken)); }
public override Task <IPagedResult <BlogModel> > FetchPagedListAsync(FilteredPagedRequest request, CancellationToken cancellationToken = default) { return(EntitySet.AsNoTracking() .Select(b => new BlogModel { Id = b.Id, Url = b.Url, Title = b.Title }).ToPagedListAsync(request, cancellationToken)); }
public override Task <IPagedResult <UserReadModel> > ReadPagedListAsync(FilteredPagedRequest model, CancellationToken cancellationToken = default) { return(EntitySet.AsNoTracking() .Select(u => new UserReadModel { Id = u.Id, IsActive = u.IsActive, UserName = u.UserName, DisplayName = u.DisplayName, LastLoggedInDateTime = u.LastLoggedInDateTime }).ToPagedListAsync(model, cancellationToken)); }
public override Task <IPagedResult <UserReadModel> > FetchPagedListAsync(FilteredPagedRequest request, CancellationToken cancellationToken = default) { request.SortingIfNullOrEmpty("Id DESC"); return(EntitySet.AsNoTracking() .Select(u => new UserReadModel { Id = u.Id, IsActive = u.IsActive, UserName = u.UserName, DisplayName = u.DisplayName, LastLoggedInDateTime = u.LastLoggedInDateTime }).ToPagedListAsync(request, cancellationToken)); }
private protected override Task <IPagedResult <TModel> > FetchPagedListAsync(FilteredPagedRequest request, CancellationToken cancellationToken) { return(EntityService.FetchPagedListAsync(request, cancellationToken)); }
private protected override Task <IPagedResult <TModel> > ReadPagedListAsync(FilteredPagedRequest request, CancellationToken cancellationToken) { return(CrudService.ReadPagedListAsync(request, cancellationToken)); }