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. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The connection is not opened. |
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.
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. |
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 SourceRecordChanged
The event occurs when record changed.
Declaration
event EventHandler<RecordChangedEventArgs> RecordChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><RecordChangedEventArgs> |