SQLiteConnectionFindT 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:
Unvired.Kernel.SQLite
Assembly:
Unvired.Kernel.UWP (in Unvired.Kernel.UWP.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic T Find<T>(
Object pk
)
where T : new()
Public Function Find(Of T As New) (
pk As Object
) As T
public:
generic<typename T>
where T : gcnew()
T Find(
Object^ pk
)
member Find :
pk : Object -> 'T when 'T : new()
Parameters
- pk
- Type: SystemObject
The primary key.
Type Parameters
- T
Return Value
Type:
T
The object with the given primary key or null
if the object is not found.
See Also