Class Sql

    Definition

    Namespace:
    Tizen.Data.Tdbc
    Assembly:
    Tizen.Data.Tdbc.dll

    Represents a SQL query string.

    public class Sql
    Inheritance
    object
    Sql

    Constructors

    View Source

    Sql(string)

    The constructor of Sql class.

    Declaration
    public Sql(string sql)
    Parameters
    Type Name Description
    string sql

    The string of the query.

    Properties

    View Source

    Bindings

    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>
    View Source

    Command

    The SQL command string.

    Declaration
    public string Command { get; }
    Property Value
    Type Description
    string

    Methods

    View Source

    Bind(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.

    View Source

    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.

    View Source

    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.

    View Source

    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.

    View Source

    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.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX