Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

MySqlInsertBulk..::..WithNotifications Method

After notifyAfter records, the event handler may be fired. This can be used to abort the bulk insert.

Namespace:  Tortuga.Chain.MySql.CommandBuilders
Assembly:  Tortuga.Chain.MySql (in Tortuga.Chain.MySql.dll)

Syntax


public MySqlInsertBulk WithNotifications(
	EventHandler<AbortableOperationEventArgs> eventHandler,
	int notifyAfter
)
Public Function WithNotifications ( _
	eventHandler As EventHandler(Of AbortableOperationEventArgs), _
	notifyAfter As Integer _
) As MySqlInsertBulk
public:
MySqlInsertBulk^ WithNotifications(
	EventHandler<AbortableOperationEventArgs^>^ eventHandler, 
	int^ notifyAfter
)

Parameters

eventHandler
Type: EventHandler<(Of <(<'AbortableOperationEventArgs>)>)>
The event handler.
notifyAfter
Type: Int32
The notify after. This should be a multiple of the batch size.