C# Class Schumix.Framework.Database.SQLite

Afficher le fichier Open project: Schumix/Schumix2

Méthodes publiques

Méthode Description
Delete ( string sql ) : bool
Delete ( string TableName, string Where ) : bool
ExecuteNonQuery ( string sql, bool logerror = true ) : void
Insert ( string sql ) : bool
Insert ( string TableName, string Values ) : bool
IsCreatedTable ( string Table ) : bool
Query ( string query, bool logerror = true ) : DataTable

Executes the given query on the database.

QueryFirstRow ( string query ) : DataRow

Executes the given query on the database and returns the result's first row.

RemoveTable ( string Table ) : bool
SQLite ( ) : System
SQLite ( string file ) : System
Update ( string sql ) : bool
Update ( string TableName, string Set ) : bool
Update ( string TableName, string Set, string Where ) : bool

Private Methods

Méthode Description
Crash ( System.Data.SQLite.SQLiteException s, bool logerror, bool c = false ) : void
Initialize ( string file ) : bool
IsConnect ( ) : void

Method Details

Delete() public méthode

public Delete ( string sql ) : bool
sql string
Résultat bool

Delete() public méthode

public Delete ( string TableName, string Where ) : bool
TableName string
Where string
Résultat bool

ExecuteNonQuery() public méthode

public ExecuteNonQuery ( string sql, bool logerror = true ) : void
sql string
logerror bool
Résultat void

Insert() public méthode

public Insert ( string sql ) : bool
sql string
Résultat bool

Insert() public méthode

public Insert ( string TableName, string Values ) : bool
TableName string
Values string
Résultat bool

IsCreatedTable() public méthode

public IsCreatedTable ( string Table ) : bool
Table string
Résultat bool

Query() public méthode

Executes the given query on the database.
public Query ( string query, bool logerror = true ) : DataTable
query string
logerror bool
Résultat DataTable

QueryFirstRow() public méthode

Executes the given query on the database and returns the result's first row.
public QueryFirstRow ( string query ) : DataRow
query string Query to execute
Résultat DataRow

RemoveTable() public méthode

public RemoveTable ( string Table ) : bool
Table string
Résultat bool

SQLite() public méthode

public SQLite ( ) : System
Résultat System

SQLite() public méthode

public SQLite ( string file ) : System
file string
Résultat System

Update() public méthode

public Update ( string sql ) : bool
sql string
Résultat bool

Update() public méthode

public Update ( string TableName, string Set ) : bool
TableName string
Set string
Résultat bool

Update() public méthode

public Update ( string TableName, string Set, string Where ) : bool
TableName string
Set string
Where string
Résultat bool