C# Class FaceDetection.Model.Recognition.DatabaseHandler

Afficher le fichier Open project: PkInfRemi/FaceDetectionApp

Méthodes publiques

Méthode Description
Insert ( string statement ) : long

Inserts data into the database.

InsertAsync ( string statement ) : Task

Asynchronously inserts data into the database.

ResetDatabase ( ) : bool

Resets the database.

Select ( string statement ) : SQLiteDataReader

Selects data from the database.

SelectAsync ( string statement ) : Task

Asynchonously selects data from the database.

SelectObject ( string statement ) : object

Selects data from the database.

SelectObjectAsync ( string statement ) : Task

Asynchronously selects data from the database.

Update ( string statement ) : bool

Updates data in the database.

UpdateAsync ( string statement ) : Task

Asynchronously updates data in the database.

Private Methods

Méthode Description
CloseConnection ( ) : bool
CreateTables ( ) : bool
DatabaseHandler ( ) : System
DeleteDatabase ( ) : bool
InitializeConnection ( ) : bool
InitializeDatabase ( ) : bool
OpenConnection ( ) : void

Method Details

Insert() public static méthode

Inserts data into the database.
public static Insert ( string statement ) : long
statement string The statement.
Résultat long

InsertAsync() public static méthode

Asynchronously inserts data into the database.
public static InsertAsync ( string statement ) : Task
statement string The statement.
Résultat Task

ResetDatabase() public static méthode

Resets the database.
public static ResetDatabase ( ) : bool
Résultat bool

Select() public static méthode

Selects data from the database.
public static Select ( string statement ) : SQLiteDataReader
statement string The statement.
Résultat System.Data.SQLite.SQLiteDataReader

SelectAsync() public static méthode

Asynchonously selects data from the database.
public static SelectAsync ( string statement ) : Task
statement string The statement.
Résultat Task

SelectObject() public static méthode

Selects data from the database.
public static SelectObject ( string statement ) : object
statement string The statement.
Résultat object

SelectObjectAsync() public static méthode

Asynchronously selects data from the database.
public static SelectObjectAsync ( string statement ) : Task
statement string The statement.
Résultat Task

Update() public static méthode

Updates data in the database.
public static Update ( string statement ) : bool
statement string The statement.
Résultat bool

UpdateAsync() public static méthode

Asynchronously updates data in the database.
public static UpdateAsync ( string statement ) : Task
statement string The statement.
Résultat Task