Interface IConnection
Definition
- Assembly:
- Tizen.Data.Tdbc.dll
TDBC Interface for connecting with a database.
public interface IConnection : IDisposable
Methods
View SourceClose()
Closes the database.
Declaration
void Close()
CreateStatement()
Creates a statement object associated with the connection.
Declaration
IStatement CreateStatement()
Returns
Type | Description |
---|---|
IStatement | The statement object. |
IsOpen()
Returns that the database is opened or not.
Declaration
bool IsOpen()
Returns
Type | Description |
---|---|
bool |
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.
Open(Uri)
Opens the database.
Declaration
void Open(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
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.
Events
View SourceRecordChanged
The event occurs when record changed.
Declaration
event EventHandler<RecordChangedEventArgs> RecordChanged
Event Type
Type | Description |
---|---|
EventHandler<><RecordChangedEventArgs> |