SQLiteConnectionFindT 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 Find<T>(
Expression<Func<T, bool>> predicate
)
where T : new()
Public Function Find(Of T As New) (
predicate As Expression(Of Func(Of T, Boolean))
) As T
public:
generic<typename T>
where T : gcnew()
T Find(
Expression<Func<T, bool>^>^ predicate
)
member Find :
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 or null
if the object is not found.
See Also