IMapperBulkInsertBegin Method |
Initiate a bulk insert using the mapper and fire its corresponding extension event.
The object controlling the bulk operation typically makes this call before performing the
insert operations in a loop using the same mapper instance.
The bulkContext will be provided in the
BulkContext parameter for all mapper events performed
during the bulk operation. If a null bulkContext object is provided, the method will instantiate
one for you. If you want a custom bulkContext, you should derive from the base
EventBulkContext
object and provide an instance of your derived class.
If BulkInsertBegin is called, you should call
BulkInsertEnd when the operation completes.
Namespace:
NetQuarry.Data
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax ExtResults BulkInsertBegin(
EventBulkContext bulkContext
)
Function BulkInsertBegin (
bulkContext As EventBulkContext
) As ExtResults
Parameters
- bulkContext
- Type: NetQuarryEventBulkContext
The bulk context object to use. If null, a context will be created for you.
Return Value
Type:
ExtResultsThe status of the ExtensionEvents.MapperBulkBeforeInsert event.
See Also