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.LightSpeedAssembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
public TEntity Import<TEntity>( Object source, Func<Type, Object, Object> mappingFunction ) where TEntity : Entity |
Visual Basic (Declaration) |
---|
Public Function Import(Of TEntity As Entity) ( _ source As Object, _ mappingFunction As Func(Of Type, Object, Object) _ ) As TEntity |
Parameters
- source
- Type: System..::.Object
The source object containing data to be imported
- mappingFunction
- Type: System..::.Func<(Of <(Type, Object, Object>)>)
A custom mapping function for translating the source object to the target type
Type Parameters
- TEntity
- The type of the entity to which the source object will be mapped against