Interface IConnection

    Definition

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

    TDBC Interface for connecting with a database.

    public interface IConnection : IDisposable

    Methods

    View Source

    Close()

    Closes the database.

    Declaration
    void Close()
    View Source

    CreateStatement()

    Creates a statement object associated with the connection.

    Declaration
    IStatement CreateStatement()
    Returns
    Type Description
    IStatement

    The statement object.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The connection is not opened.

    View Source

    IsOpen()

    Returns that the database is opened or not.

    Declaration
    bool IsOpen()
    Returns
    Type Description
    bool
    View Source

    Open(string)

    Opens the database.

    Declaration
    void Open(string openString)
    Parameters
    Type Name Description
    string openString

    The URI represents database to connect.

    Remarks

    If the driver uses database at filesystem, such as media storage or external storage, you need to declare a proper privilege such as http://tizen.org/privileges/mediastorage or http://tizen.org/privileges/externalstorage.

    Exceptions
    Type Condition
    System.ArgumentException

    The input openString is invalid.

    System.InvalidOperationException

    The drvier open is failed.

    System.UnauthorizedAccessException

    .The application doesn't have permission or privilege to access database.

    View Source

    Open(Uri)

    Opens the database.

    Declaration
    void Open(Uri uri)
    Parameters
    Type Name Description
    System.Uri uri

    The URI represents database to connect.

    Remarks

    If the driver uses database at filesystem, such as media storage or external storage, you need to declare a proper privilege such as http://tizen.org/privileges/mediastorage or http://tizen.org/privileges/externalstorage.

    Exceptions
    Type Condition
    System.ArgumentException

    The input URI is invalid.

    System.InvalidOperationException

    The drvier open is failed.

    System.UnauthorizedAccessException

    .The application doesn't have permission or privilege to access database.

    Events

    View Source

    RecordChanged

    The event occurs when record changed.

    Declaration
    event EventHandler<RecordChangedEventArgs> RecordChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><RecordChangedEventArgs>
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX