Show / Hide Table of Contents

Class DataExportContext

A data export context.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
Context
DataIOContext
DataExportContext
Implements
IDataExportContext
IDataIOContext
IContext
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
ILoggable
System.IDisposable
Inherited Members
DataIOContext.RootObjectType
DataIOContext.SerializationContextConfig
Context.AmbientServices
Context.CompositionContext
Context.Identity
Context.Logger
Context.Dispose()
Context.ValidateIdentity(IIdentity, IIdentity)
Context.SetCompositionContext(ICompositionContext)
Context.SetAmbientServices(IAmbientServices)
Context.Dispose(Boolean)
ExpandoBase.Item[String]
ExpandoBase.GetDynamicMemberNames()
ExpandoBase.HasDynamicMember(String)
ExpandoBase.TryGetMember(GetMemberBinder, Object)
ExpandoBase.TrySetMember(SetMemberBinder, Object)
ExpandoBase.TryInvokeMember(InvokeMemberBinder, Object[], Object)
ExpandoBase.ToDictionary(Func<String, String>, Func<Object, Object>)
ExpandoBase.GetInnerObjectTypeInfo()
ExpandoBase.GetThisTypeInfo()
ExpandoBase.TryGetValue(String, Object)
ExpandoBase.TrySetValue(String, Object)
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.IO.Export
Assembly: Kephas.Data.IO.dll
Syntax
public class DataExportContext : DataIOContext, IDataExportContext, IDataIOContext, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable

Constructors

| Improve this Doc View Source

DataExportContext(ClientQuery, DataStream, IContext)

Initializes a new instance of the DataExportContext class.

Declaration
public DataExportContext(ClientQuery query, DataStream output, IContext operationContext = null)
Parameters
Type Name Description
ClientQuery query

The query.

DataStream output

The export output.

IContext operationContext

Optional. The parent operation context.

| Improve this Doc View Source

DataExportContext(IEnumerable<Object>, DataStream)

Initializes a new instance of the DataExportContext class.

Declaration
public DataExportContext(IEnumerable<object> data, DataStream output)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Object> data

The data to be exported.

DataStream output

The export output.

Properties

| Improve this Doc View Source

ClientQueryExecutionContextConfig

Gets or sets the client query execution context configuration.

Declaration
public Action<IClientQueryExecutionContext> ClientQueryExecutionContextConfig { get; set; }
Property Value
Type Description
System.Action<IClientQueryExecutionContext>

The client query execution context configuration.

| Improve this Doc View Source

Data

Gets the data to be exported.

Declaration
public IEnumerable<object> Data { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Object>

The data to be exported.

| Improve this Doc View Source

DefaultRootTargetType

Gets or sets the default root target type.

Declaration
public Type DefaultRootTargetType { get; set; }
Property Value
Type Description
System.Type

The default root target type.

| Improve this Doc View Source

Output

Gets or sets the export output.

Declaration
public DataStream Output { get; set; }
Property Value
Type Description
DataStream

The export output.

| Improve this Doc View Source

Query

Gets the query used to retrieve the data to be exported.

Declaration
public ClientQuery Query { get; }
Property Value
Type Description
ClientQuery

The query to retrieve data.

| Improve this Doc View Source

ThrowOnNotFound

Gets or sets a value indicating whether to throw an exception if no data is found to export.

Declaration
public bool ThrowOnNotFound { get; set; }
Property Value
Type Description
System.Boolean

truetrue to throw an exception if no data is found to export, otherwise false.

Implements

IDataExportContext
IDataIOContext
IContext
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
ILoggable
System.IDisposable

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)
DataIOContextExtensions.WithSerializationContextConfig(IDataIOContext, Action<ISerializationContext>)
DataIOContextExtensions.WithRootObjectType(IDataIOContext, Type)
DataExportContextExtensions.EnsureResult(IDataExportContext, Func<IOperationResult>)
DataExportContextExtensions.GetResult(IDataExportContext)
DataExportContextExtensions.WithClientQueryExecutionContextConfig(IDataExportContext, Action<IClientQueryExecutionContext>)
MessageBrokerExtensions.CreateBrokeredMessageBuilder(IContext)
ContextExtensions.InitialData(IContext)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<(Object entity, ChangeState changeState)>)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<Object>)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<IChangeStateTrackableEntityEntry>)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX