Interface IDataConversionTargetResolver
Singleton application service contract for resolving targets during data conversion.
Namespace: Kephas.Data.Conversion
Assembly: Kephas.Data.dll
Syntax
public interface IDataConversionTargetResolver
Methods
| Improve this Doc View SourceTryResolveTargetEntityAsync(IDataContext, TypeInfo, Object, IEntityEntry, CancellationToken)
Tries to resolve the target entity asynchronously.
Declaration
Task<object> TryResolveTargetEntityAsync(IDataContext targetDataContext, TypeInfo targetType, object sourceEntity, IEntityEntry sourceEntityEntry, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IDataContext | targetDataContext | Context for the target data. |
System.Reflection.TypeInfo | targetType | The type of the target object. |
System.Object | sourceEntity | The source entity. |
IEntityEntry | sourceEntityEntry | The source entity entry, if available. |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | A promise of the target entity. |