Is it possible to insert only 100 records at a time per transaction? I would like to do so in order to avoid timeouts in my application.
using(var scope = new TransactionScope())
{
foreach ( object x in list)
{
}
context.SubmitChanges();
scope.Complete();
}
Therefore, I would like to insert only 100 or even 50 rows inside this transaction in order to avoid timeouts.
source
share