SQLiteConnectionGetT Method (ExpressionFuncT, Boolean) |
Attempts to retrieve the first object that matches the predicate from the table
associated with the specified type.
Namespace:
Unvired.Kernel.SQLite
Assembly:
Unvired.Kernel.UWP (in Unvired.Kernel.UWP.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic T Get<T>(
Expression<Func<T, bool>> predicate
)
where T : new()
Public Function Get(Of T As New) (
predicate As Expression(Of Func(Of T, Boolean))
) As T
public:
generic<typename T>
where T : gcnew()
T Get(
Expression<Func<T, bool>^>^ predicate
)
member Get :
predicate : Expression<Func<'T, bool>> -> 'T when 'T : new()
Parameters
- predicate
- Type: System.Linq.ExpressionsExpressionFuncT, Boolean
A predicate for which object to find.
Type Parameters
- T
Return Value
Type:
T
The object that matches the given predicate. Throws a not found exception
if the object is not found.
See Also