AliveTypeExtensions.FindEntity<TEntity> Method

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

Searches for the first object of the type designated by the specified generic type parameter, matching the specified criteria.

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

  • c#
  • VB

[Obsolete("Use objectSpace.Xafari().FindObject() method instead.")] public static TEntity FindEntity<TEntity>( this IObjectSpace objectSpace, CriteriaOperator criteria = null, bool inTransaction = false ) where TEntity : class

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1