Show / Hide Table of Contents

Interface IDataConversionService

Application service contract for data conversions.

Namespace: Kephas.Data.Conversion
Assembly: Kephas.Data.dll
Syntax
[SingletonAppServiceContract]
public interface IDataConversionService

Methods

| Improve this Doc View Source

ConvertAsync<TSource, TTarget>(TSource, TTarget, IDataConversionContext, CancellationToken)

Converts the source object to the target object asynchronously.

Declaration
Task<IDataConversionResult> ConvertAsync<TSource, TTarget>(TSource source, TTarget target, IDataConversionContext conversionContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
TSource source

The source object.

TTarget target

The target object.

IDataConversionContext conversionContext

The conversion context.

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

Returns
Type Description
System.Threading.Tasks.Task<IDataConversionResult>

A data conversion result.

Type Parameters
Name Description
TSource

The type of the source object.

TTarget

The type of the target object.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX