SimpleStatement Constructor (String, Object) |
Namespace: Dse
public SimpleStatement( string query, params Object[] values )
const string query = "INSERT INTO users (id, name, email) VALUES (?, ?, ?)"; var statement = new SimpleStatement(query, id, name, email);
const string query = "INSERT INTO users (id, name, email) VALUES (:id, :name, :email)"; var statement = new SimpleStatement(query, new { id, name, email } );