DapperLib / DapperLib/Dapper.Contrib

Dapper Contrib does not support HANA?

Open
#14 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
293
Forks
109
PR merge metrics
No merged PRs in 30d

Description

Using Get method with HanaConnection and OdbConnection classes I get an error, it seems that the placeholder for the Id in the query (an @, I always have used ? for Hana) is not replaced.

Code:

HanaConnection connection = new HanaConnection("connectionString");

connection.Open();

var invoice = connection.Get<Invoice>(63829);

My Invoice class:

[Table("OINV")]
public class Invoice
{
    [ExplicitKey]
    public int DocEntry { get; set; }
    public string CardCode { get; set; }
    public string FakeProperty { get; set; }
 }

The error:

syntax-error-dapper

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 reproducing the Get(63829) call with HanaConnection and inspect how Dapper.Contrib builds the query placeholder for the Id. Compare the generated @ placeholder with the ? syntax expected by HanaConnection and OdbConnection. Done means the shown lookup executes successfully against HANA without breaking existing providers.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.