Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question List parameters support? #20

Open
coolblabla opened this issue Jun 20, 2016 · 1 comment
Open

Question List parameters support? #20

coolblabla opened this issue Jun 20, 2016 · 1 comment

Comments

@coolblabla
Copy link

Hi, awesome work!
does nvivo dbhelps support this like following ?
"select * from (select 1 as Id union all select 2 union all select 3) as X where Id in @Ids",

@coolblabla
Copy link
Author

and do I have to use var transaction = connection.BeginTransaction(); instead of connection?

using (var connection = db.CreateConnection()) {
    connection.Open();
    db.ExecuteNonQuery(..., connection);
    db.ExecuteNonQuery(..., connection);
    db.ExecuteNonQuery(..., connection);
    return db.ExecuteScalar<int>(..., connection);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant