On Wed, Aug 25, 2010 at 5:47 AM, [email protected] <[email protected]>wrote:
> Hey Fabio,
>
> How do I implement my own batcher. Any links , or docs regarding to
> that ?
> I am aware of the risks, I still believe this should be an optional
> feature just like other concurrency mechanisms.
>
As a feature ?
No thanks.
For that reason the batcher is injectable.
Inherith from SqlClientBatchingBatcher
override the method DoExecuteBatch with this impl
protected override void DoExecuteBatch(IDbCommand ps)
{
CheckReaders();
Prepare(currentBatch.BatchCommand);
currentBatch.ExecuteNonQuery();
currentBatch.Dispose();
totalExpectedRowsAffected = 0;
currentBatch = CreateConfiguredBatch();
}
--
Fabio Maulo
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.