Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

IObjectSpace.FirstOrDefault Method

Name Parameters Description
FirstOrDefault<ObjectType>(Expression<Func<ObjectType, Boolean>>, Boolean) criteriaExpression, inTransaction Searches for the first object that matches the specified lambda expression. The generic parameter determines the object’s type. This method takes uncommitted changes into account.
FirstOrDefault<ObjectType>(Expression<Func<ObjectType, Boolean>>) criteriaExpression Searches for the first object that matches the specified lambda expression. The generic parameter determines the object’s type.