Click or drag to resize

SQLiteConnectionGetT Method (Object)

Attempts to retrieve an object with the given primary key from the table associated with the specified type. Use of this method requires that the given type have a designated PrimaryKey (using the PrimaryKeyAttribute).

Namespace:  SQLite
Assembly:  RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax
C#
public T Get<T>(
	Object pk
)
where T : new()

Parameters

pk
Type: SystemObject
The primary key.

Type Parameters

T

Return Value

Type: T
The object with the given primary key. Throws a not found exception if the object is not found.
See Also