DapperLib / DapperLib/Dapper

byte[] / Image SQL type with CE fails with byte arrays > 8000 characters

Open
#213 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Related to this issue I believe:https://connect.microsoft.com/sqlserver/feedback/details/311412/sqlceparameter-limits-dbtype-binary-to-8000-characters-ssce3-5

In short: it looks as though Dapper needs to explicitly set the parameter type when binding parameters:

SqlCeParameter paramBlob = cmd.Parameters.Add("blob", SqlDbType.NText);

Any thoughts would be welcomed.

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

Start by locating Dapper's parameter-binding path for SQL CE and compare its behavior with the SqlCeParameter example in the issue. Reproduce the failure using a byte array over 8000 characters; done means SQL CE accepts the parameter without truncation or binding failure.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.