Class Sql
Definition
- Assembly:
- Tizen.Data.Tdbc.dll
Represents a SQL query string.
public class Sql
- Inheritance
-
objectSql
Constructors
View SourceSql(string)
The constructor of Sql class.
Declaration
public Sql(string sql)
Parameters
Type | Name | Description |
---|---|---|
string | sql | The string of the query. |
Properties
View SourceBindings
The bindings as a name to value Dictionary.
Declaration
public IReadOnlyDictionary<string, object> Bindings { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><string, object> |
Command
The SQL command string.
Declaration
public string Command { get; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceBind(string, bool)
Binds the variable to the parameter.
Declaration
public Sql Bind(string key, bool val)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the parameter. |
bool | val | The boolean type value to bind. |
Returns
Type | Description |
---|---|
Sql | The sql object itself. |
Bind(string, byte[])
Binds the variable to the parameter.
Declaration
public Sql Bind(string key, byte[] val)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the parameter. |
byte[] | val | The byte type value to bind. |
Returns
Type | Description |
---|---|
Sql | The sql object itself. |
Bind(string, double)
Binds the variable to the parameter.
Declaration
public Sql Bind(string key, double val)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the parameter. |
double | val | The double type value to bind. |
Returns
Type | Description |
---|---|
Sql | The sql object itself. |
Bind(string, int)
Binds the variable to the parameter.
Declaration
public Sql Bind(string key, int val)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the parameter. |
int | val | The integer type value to bind. |
Returns
Type | Description |
---|---|
Sql | The sql object itself. |
Bind(string, string)
Binds the variable to the parameter.
Declaration
public Sql Bind(string key, string val)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the parameter. |
string | val | The string type value to bind. |
Returns
Type | Description |
---|---|
Sql | The sql object itself. |