DapperLib / DapperLib/Dapper.Contrib
Dapper Contrib does not support HANA?
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:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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