Siphon Interface
Abstraction of the database connection.
public interface Siphon
- Derived
Methods
Execute |
Executes the SQL statement without the results. |
Execute |
Executes the SQL statement and returns the reader of the results. |
Execute |
Executes the SQL statement and returns the scalar result. |
Methods Detail
ExecuteNonQuery(string, IReadOnlyDictionary<string, object>)
Executes the SQL statement without the results.
void ExecuteNonQuery(string text, [IReadOnlyDictionary<string, object> parameters = null])
Parameters
- text
- string
The SQL statement.
- parameters
-
IRead
Only <string, object>Dictionary
The parameters of the statement. This can be null
if the statement contains no parameters.
ExecuteReader(string, IReadOnlyDictionary<string, object>)
Executes the SQL statement and returns the reader of the results.
Reservoir ExecuteReader(string text, [IReadOnlyDictionary<string, object> parameters = null])
Parameters
- text
- string
The SQL statement.
- parameters
-
IRead
Only <string, object>Dictionary
The parameters of the statement. This can be null
if the statement contains no parameters.
Returns
The reader of the results.
ExecuteLong(string, IReadOnlyDictionary<string, object>)
Executes the SQL statement and returns the scalar result.
long ExecuteLong(string text, [IReadOnlyDictionary<string, object> parameters = null])
Parameters
- text
- string
The SQL statement.
- parameters
-
IRead
Only <string, object>Dictionary
The parameters of the statement. This can be null
if the statement contains no parameters.
Returns
The scalar result.