astrolabe-search-state

Build dynamic .NET search APIs with filtering, sorting, and pagination helpers.

1|5|Updated Aug 6, 2023
One-click install
npx skills add https://github.com/astrolabe-apps/astrolabe-common --skill astrolabe-search-state
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astrolabe-search-state
Source: https://github.com/astrolabe-apps/astrolabe-common/tree/main/skills/astrolabe-search-state
Command: npx skills add https://github.com/astrolabe-apps/astrolabe-common --skill astrolabe-search-state

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Astrolabe.SearchState provides generic classes and utilities for implementing robust search, filtering, sorting, and pagination functionality in .NET applications. Build flexible search capabilities with minimal code using dynamic property-based operations across collections and EF queries.

Core Features & Use Cases

  • Dynamic filtering: build and apply filters on properties at runtime.
  • Dynamic sorting: order results by arbitrary properties with direction.
  • Pagination: page through results with offset and length control.
  • Projection & reuse: share search logic across services and map to DTOs.
  • Use Case: Build a list/grid API that supports query, sort, filter, and paging across large datasets.

Quick Start

Create a .NET search API for products that accepts SearchOptions with query, sort, filters, and pagination, and returns paged results.

Frequently Asked Questions about astrolabe-search-state

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement dynamic search, filtering, and pagination in a .NET web API?

Dynamic search, filtering, and pagination in .NET is handled by reusing generic state and query helpers, building robust search APIs across web grids with minimal setup. It leverages dynamic property-based operations across collections and EF queries.

What is the best way to sort and filter large datasets dynamically in .NET?

Sorting and filtering large datasets in .NET is achieved using generic search builders that apply property-based operations at runtime. This approach allows ordering by arbitrary properties with direction and building filters dynamically.

Can I use generic search builders to map query results to DTOs in .NET?

Generic search builders support projection and reuse, allowing you to map query results to DTOs in .NET. You can share search logic across services while returning paged results from large datasets.

Do I need custom filterers for complex queries in .NET pagination?

Custom filterers are optional for complex queries in .NET pagination. The core utilities satisfy common performance and UX requirements using generic classes, but custom filterers can be leveraged when specific query logic is needed.

How does offset and length pagination work for .NET grid views?

Pagination for .NET grid views works by controlling results with offset and length parameters. This allows you to page through large datasets returned from a list or grid API that supports query, sort, and filter operations.