AliveTypeExtensions.FindEntity Method

NOTE: This member is now obsolete. Use objectSpace.Xafari().FindObject() method instead.

Searches for the first object of the specified type, matching the specified criteria.

Namespace: Xafari
Assembly: Xafari.BC (in Xafari.BC.dll)

  • c#
  • VB

[Obsolete("Use objectSpace.Xafari().FindObject() method instead.")] public static object FindEntity( this IObjectSpace objectSpace, Type entityType, CriteriaOperator criteria = null, bool inTransaction = false )

<Obsolete("Use objectSpace.Xafari().FindObject() method instead.")> _
<System.Runtime.CompilerServices.Extension> _
Public Shared Function FindEntity(ByVal objectSpace As IObjectSpace, ByVal entityType As Type, Optional ByVal criteria As CriteriaOperator = Nothing, Optional ByVal inTransaction As Boolean = False) As Object
End Function

.NET Framework Client Profile

Supported in: 4, 3.5 SP1