Click or drag to resize

DataContextFirstOrDefaultTModel Method (ExpressionFuncTModel, Boolean)

First or default returns only the first object or null if not found

Namespace:  SanteDB.OrmLite
Assembly:  SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 2.2.1
Syntax
public TModel FirstOrDefault<TModel>(
	Expression<Func<TModel, bool>> querySpec
)

Parameters

querySpec
Type: System.Linq.ExpressionsExpressionFuncTModel, Boolean

[Missing <param name="querySpec"/> documentation for "M:SanteDB.OrmLite.DataContext.FirstOrDefault``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})"]

Type Parameters

TModel

[Missing <typeparam name="TModel"/> documentation for "M:SanteDB.OrmLite.DataContext.FirstOrDefault``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})"]

Return Value

Type: TModel

[Missing <returns> documentation for "M:SanteDB.OrmLite.DataContext.FirstOrDefault``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})"]

See Also