Click or drag to resize
DatabaseConnection Class
Extensions methods for instances of IDatabaseConnection.
Inheritance Hierarchy
SystemObject
  SQLitePCL.pretty.OrmDatabaseConnection

Namespace: SQLitePCL.pretty.Orm
Assembly: SQLitePCL.pretty.Orm (in SQLitePCL.pretty.Orm.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public static class DatabaseConnection

The DatabaseConnection type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDeleteAllT
Deleted all object instances specified by their primary keys.
Public methodStatic memberDeleteAllRowsT
Deletes all rows in a given table.
Public methodStatic memberDropTableIfExistsT
Drops the table if it exists. Otherwise this is a no-op.
Public methodStatic memberFindAllT
Finds all object instances specified by their primary keys.
Public methodStatic memberInitTableT
Creates or migrate a table in the database for the given table mapping, creating indexes if needed.
Public methodStatic memberInsertOrReplaceT
Inserts an object into the database, replacing the existing entry if the primary key already exists.
Public methodStatic memberInsertOrReplaceAllT
Inserts the objects into the database, replacing existing entries if the given primary keys already exist.
Public methodStatic memberPrepareDeleteStatementT
Prepares a SQLite statement that can be bound to an object primary key to delete row from the database.
Public methodStatic memberPrepareFindStatementT
Prepares a SQLite statement that can be bound to an object primary key to retrieve an instance from the database.
Public methodStatic memberPrepareInsertOrReplaceStatementT
Prepares a SQLite statement that can be bound to an object of type T to insert into the database.
Public methodStatic memberPrepareStatement
Compiles a SQL query.
Public methodStatic memberQuery(IDatabaseConnection, ISqlQuery)
Compiles a SQL query, returning the an IEnumerableT of rows in the result set.
Public methodStatic memberQuery(IDatabaseConnection, ISqlQuery, Object)
Compiles a SQL statement with provided bind parameter values, returning the an IEnumerableT of rows in the result set.
Public methodStatic memberTryDeleteT
Tries to delete the object in the database with the provided primary key.
Public methodStatic memberTryFindT
Tries to find an object in the database with the provided primary key.
Top
See Also