Class DataExportContext
A data export context.
Inheritance
Implements
Inherited Members
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 SourceDataExportContext(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. |
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 SourceClientQueryExecutionContextConfig
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. |
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. |
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. |
Output
Gets or sets the export output.
Declaration
public DataStream Output { get; set; }
Property Value
Type | Description |
---|---|
DataStream | The export output. |
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. |
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 |
|