| DataContextFirstOrDefaultTModel Method (SqlStatement) |
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>(
SqlStatement stmt
)
Public Function FirstOrDefault(Of TModel) (
stmt As SqlStatement
) As TModel
public:
generic<typename TModel>
TModel FirstOrDefault(
SqlStatement^ stmt
)
member FirstOrDefault :
stmt : SqlStatement -> 'TModel
Parameters
- stmt
- Type: SanteDB.OrmLiteSqlStatement
[Missing <param name="stmt"/> documentation for "M:SanteDB.OrmLite.DataContext.FirstOrDefault``1(SanteDB.OrmLite.SqlStatement)"]
Type Parameters
- TModel
[Missing <typeparam name="TModel"/> documentation for "M:SanteDB.OrmLite.DataContext.FirstOrDefault``1(SanteDB.OrmLite.SqlStatement)"]
Return Value
Type:
TModel[Missing <returns> documentation for "M:SanteDB.OrmLite.DataContext.FirstOrDefault``1(SanteDB.OrmLite.SqlStatement)"]
See Also