SQLiteConnectionFind Method (Object, TableMapping) |
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 Object Find(
Object pk,
TableMapping map
)
Public Function Find (
pk As Object,
map As TableMapping
) As Object
public:
Object^ Find(
Object^ pk,
TableMapping^ map
)
member Find :
pk : Object *
map : TableMapping -> Object
Parameters
- pk
- Type: SystemObject
The primary key.
- map
- Type: Unvired.Kernel.SQLiteTableMapping
The TableMapping used to identify the object type.
Return Value
Type:
Object
The object with the given primary key or null
if the object is not found.
See Also