Class DataImportContextExtensions
Extensions for IDataImportContext.
Inheritance
System.Object
DataImportContextExtensions
Inherited Members
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.Import
Assembly: Kephas.Data.IO.dll
Syntax
public static class DataImportContextExtensions
Methods
| Improve this Doc View SourceEnsureResult(IDataImportContext, Func<IOperationResult>)
Ensures that a result is set in the options.
Declaration
public static IOperationResult EnsureResult(this IDataImportContext self, Func<IOperationResult> resultFactory = null)
Parameters
Type | Name | Description |
---|---|---|
IDataImportContext | self | The self. |
System.Func<IOperationResult> | resultFactory | The result factory. |
Returns
Type | Description |
---|---|
IOperationResult | The result, once it is set into the options. |
GetResult(IDataImportContext)
Gets the result from the options.
Declaration
public static IOperationResult GetResult(this IDataImportContext self)
Parameters
Type | Name | Description |
---|---|---|
IDataImportContext | self | The self. |
Returns
Type | Description |
---|---|
IOperationResult | The result, once it is set into the options. |
WithDataConversionContextConfig(IDataImportContext, Action<Object, IDataConversionContext>)
Sets the data conversion context configuration.
Declaration
public static IDataImportContext WithDataConversionContextConfig(this IDataImportContext dataImportContext, Action<object, IDataConversionContext> dataConversionContextConfig)
Parameters
Type | Name | Description |
---|---|---|
IDataImportContext | dataImportContext | The data import context to act on. |
System.Action<System.Object, IDataConversionContext> | dataConversionContextConfig | The data conversion context configuration. |
Returns
Type | Description |
---|---|
IDataImportContext | The data import context. |
WithPersistChangesContextConfig(IDataImportContext, Action<IPersistChangesContext>)
Sets the persist changes context configuration.
Declaration
public static IDataImportContext WithPersistChangesContextConfig(this IDataImportContext dataImportContext, Action<IPersistChangesContext> persistChangesContextConfig)
Parameters
Type | Name | Description |
---|---|---|
IDataImportContext | dataImportContext | The data import context to act on. |
System.Action<IPersistChangesContext> | persistChangesContextConfig | The persist changes context configuration. |
Returns
Type | Description |
---|---|
IDataImportContext | The data import context. |