Click or drag to resize

ImportBulkContext Class

Bulk context used by WizSimpleImport (and possibly other import mechanisms) to provide context during both the import validation phase and the import insert phase.
Inheritance Hierarchy

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class ImportBulkContext : EventBulkContext

The ImportBulkContext type exposes the following members.

Constructors
  NameDescription
Public methodImportBulkContext
Constructor.
Top
Properties
  NameDescription
Public propertyCurrentRecord
The 0-based record number of the import record currently being processed.
Public propertyErrorCount
The number of validation errors encountered so far.
Public propertyImportOriginalFile
The original name of the file being imported. This is expected to be the name of the file as uploaded from the user's machine.
Public propertyImportSavedFile
The full path of the file being imported as stored on disk on the application server.
Public propertyImportType
The type of import being performed. This corresponds to the xot_imports.import_type column.
Public propertyImportWorksheetName
The name of the worksheet being imported. This is only meaningful for import file types supporting multiple worksheets.
Public propertyInitialEvent
Gets/sets the initial event starting the bulk operation, e.g. ExtensionEvents.MapperBulkBeforeDelete.
(Inherited from EventBulkContext.)
Public propertyItemsAffected
Gets/sets the number of items affected by the bulk operation. For example, in a bulk delete operation, this will be the number of items actually deleted by the mapper.
(Inherited from EventBulkContext.)
Public propertyItemsValidated
The number of items (records) validated so far.
Public propertyMaxErrors
The maximum number of errors allowed before the import aborts. Generally imports are configured to continue their validation phase through multiple errors in order to detect multiple problems during one validation. Any errors will prevent continuation to the import insert phase.
Public propertyParent
Gets/sets the parent object -- the object controlling the bulk operation.
(Inherited from EventBulkContext.)
Public propertyProperties
Gets the property collection for the bulk operation context. This can be used by an extension to maintain state information across a bulk operation.
(Inherited from EventBulkContext.)
Public propertyTotalRecords
The total number of records to be imported. If unknown, -1 will be returned.
Public propertyValidationOnly
Identifies whether or not this is a validation-only phase of the import.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also