Hi,
I wish to know if there is a possibility to config only a specific context to use batch updates instead of configure it globally?
Another question, is there any way to use transactions with batch updates?
Thanks, Kfir
Batch updates in EF
Please use the following code to turn on/off batch updates:peledkfir wrote:I wish to know if there is a possibility to config only a specific context to use batch updates instead of configure it globally?
Code: Select all
OracleEntityProviderConfig config = OracleEntityProviderConfig.Instance;
config.DmlOptions.BatchUpdates.Enabled = true;
...
config.DmlOptions.BatchUpdates.Enabled = false;
Each SaveChanges() is executed in its own local transaction. TransactionScope cannot be used with batch updates.peledkfir wrote:Another question, is there any way to use transactions with batch updates?
For more information, refer to http://www.devart.com/blogs/dotconnect/ ... html#Batch.
1. In multi-threaded application it seems that your solution for enabling batch will effect all thread in the application - which is not good enough for my case..
2. I already read that post. My question was if there an other way to work with transacation that is not TransactionScope with batches like beginTransaction
10x for your response
2. I already read that post. My question was if there an other way to work with transacation that is not TransactionScope with batches like beginTransaction
10x for your response