-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting timeout on DeleteFromQuery #63
Comments
Hello @fayilt , You simply need to specify a using (var bulk = new BulkOperation<EntitySimple>())
{
bulk.Connection = connection;
bulk.DestinationTableName = "EntitySimple";
var sb = new StringBuilder();
bulk.Log = x => sb.AppendLine(x);
bulk.BatchTimeout = 999;
bulk.DeleteFromQuery(tests => tests.Where(x => x.ColumnInt > 0));
var s = sb.ToString();
} Let me know if that answers correctly to your question. Best Regards, Jon |
Thanks, that partially answers my question. We're using DeleteFromQuery extension method on IQueryable, I assume there is no way to specify timeout when using that? And what's the default timeout in that case? |
Hello @fayilt , The default timeout might depend on which library you are using. The default timeout for:
To set the timeout for EFE, you simply need to set a command timeout as you normally do in Entity Framework: EFCore: Let me know if that answers all your questions. Best Regards, Jon |
Hello @fayilt , Since our last conversation, we haven't heard from you! Don't hesitate to contact us if you have any questions. Best regards, Jon |
Hi, is there a way to override the default timeout of the DeleteFromQuery operation? I couldn't find anything in the documentation.
Thanks
The text was updated successfully, but these errors were encountered: