Skip to content

Custom query parameters names #290

@edlman

Description

@edlman

Details

Is it possible to use custom parameters' names in query string and map them to properties of objects?
On the backend side there is an entity Domain with property CreatedAt.
On the frontend side there is a component which send GET /url?orderBy=created_at
So I need to map created_at to Domain.CreatedAt. I tried it by calling AddMap("created_at", p => Domain.CreatedAt, true) by it doesn't work. Gridify throws GridifyMapperException.
How can I use custom filtering and ordering names and map them to properties?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions