Skip to main content
.NET Framework 4.6.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.