Skip to content

Dapper Contrib does not support HANA? #14

@jose-dvm

Description

@jose-dvm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions