Imports the specified Entity to the current unit of work which will associate it with the current UnitOfWork and sync it against the current state from either the database or identity map.

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public TEntity Import<TEntity>(
	TEntity entity
) where TEntity : Entity
Visual Basic (Declaration)
Public Function Import(Of TEntity As Entity) ( _
	entity As TEntity _
) As TEntity

Parameters

entity
Type: TEntity
The Entity to import.

Type Parameters

TEntity
The generic type of the entity

Return Value

The entity as imported into the current UnitOfWork

See Also