Imports the specified source object to the current unit of work which will map its properties against the currently loaded version of an associated entity, the type of which shall be TEntity.

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

Syntax

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

Parameters

source
Type: System..::.Object
The source object containing data to be imported

Type Parameters

TEntity
The type of the entity to which the source object will be mapped against

Return Value

An instance of a TEntity which has been loaded from the database/identity map if appropriate and had its properties mapped from the source object

See Also