DapperLib / DapperLib/Dapper

Can you Implement zero-length results which not provided for Descriptor API for grid binding

Open
#1,611 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
18.4k
Forks
3.7k
Avg merge
5h 8m
Merged PRs (30d)
1

Description

Check here:
https://github.com/StackExchange/Dapper/blob/main/Dapper/SqlMapper.DapperRow.Descriptor.cs
Commented
image
_//// in theory we could implement this for zero-length results to bind; would require
//// additional changes, though, to capture a table even when no rows - so not currently provided

Please can you provide it. I try bind Query with grid but SQL table is empty. The GridView is shown nothing
Thanks in advance

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read Dapper/SqlMapper.DapperRow.Descriptor.cs and the linked comment about zero-length results. Reproduce a Query against an empty SQL table with grid binding, then trace what metadata is available when no rows are returned. Done means zero-length results provide the information needed for the grid to bind successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sql
Domain
api, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.