AliveTypeExtensions.CreateEntity<TEntity> Method

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

Creates the instance of entity TEntity.

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

  • c#
  • VB

[Obsolete("Use objectSpace.Xafari().CreateObject() method instead.")] public static TEntity CreateEntity<TEntity>( this IObjectSpace objectSpace )

<Obsolete("Use objectSpace.Xafari().CreateObject() method instead.")> _
<System.Runtime.CompilerServices.Extension> _
Public Shared Function CreateEntity(Of TEntity)(ByVal objectSpace As IObjectSpace) As TEntity
End Function

Finds the real entity type and create the instance of founded type.

.NET Framework Client Profile

Supported in: 4, 3.5 SP1