Skip to end of metadata
Go to start of metadata

Represents SQLite command.

Definition

public class SQLiteCommand : ISQLiteCommand

Summary

The following table summarizes the members exposed in this class.

Public Properties

CommandText Gets or sets the command text.

Public Methods

Bind(string, object) Binds the specified name.
Bind(object) Binds the specified value.
ExecuteDeferredQuery<T>() Executes the deferred query.
ExecuteDeferredQuery<T>(ITableMapping) Executes the deferred query.
ExecuteNonQuery() Executes non query.
ExecuteQuery<T>() Executes the SQLite query.
ExecuteQuery<T>(ITableMapping) Executes the SQLite query.
ExecuteScalar<T>() Executes the scalar query.
ToString() Returns a System.String that represents this instance.

Protected Methods

OnInstanceCreated(object) Invoked every time an instance is loaded from the database.

Public Properties

public string CommandText { get; set; }

Gets or sets the command text.

Public Methods

public void Bind(string name, object value)

Binds the specified name.

Parameters

name The name.
value The value.

public void Bind(object value)

Binds the specified value.

Parameters

value The value.

public IEnumerable<T> ExecuteDeferredQuery<T>()

Executes the deferred query.

Type Parameters

T The entity type.

public IEnumerable<T> ExecuteDeferredQuery<T>(ITableMapping map)

Executes the deferred query.

Type Parameters

T The entity type.

Parameters

map The map.

public int ExecuteNonQuery()

Executes non query.

public List<T> ExecuteQuery<T>()

Executes the SQLite query.

Type Parameters

T The entity type.

public List<T> ExecuteQuery<T>(ITableMapping map)

Executes the SQLite query.

Type Parameters

T The entity type.

Parameters

map The map.

public T ExecuteScalar<T>()

Executes the scalar query.

Type Parameters

T The entity type.

public string ToString()

Returns a System.String that represents this instance.

Return Types

A System.String that represents this instance.

Protected Methods

protected void OnInstanceCreated(object obj)

Invoked every time an instance is loaded from the database.

Remarks

This can be overridden in combination with the SQLiteConnection method to hook into the life-cycle of objects. Type safety is not possible because MonoTouch does not support virtual generic methods.

Parameters

obj The newly created object.
  • No labels