Open AntonC9018 opened 10 months ago
DataOptions
already support bulk copy settings:
dataOptions.UseBulkCopyTimeout(123);
// or
dataOptions.BulkCopyOptions.WithBulkCopyTimeout(123);
DataOptions
already support bulk copy settings:dataOptions.UseBulkCopyTimeout(123); // or dataOptions.BulkCopyOptions.WithBulkCopyTimeout(123);
Well yeah, but that doesn't actually change it. You have to reassign the options after. And you can't reassign it for IDataContext
.
Those methods are pure.
You are not supposed to re-assign it. Check AddCustomOptions
configuration extension example in readme
You are not supposed to re-assign it. Check
AddCustomOptions
configuration extension example in readme
Like I mentioned, that's global, aka per context type. It doesn't allow configuring it per context instance. That's what I said in this issue.
I see, we can add configuration delegete parameter to CreateLinqToDbContext
APIs
There doesn't seem to be a way to set
BulkCopyTimeout
for example, on the whole context, rather than per operation, non-globally. The only way to configure it seems to be setting a value forLinqToDBOptionsExtension
on EF Core'sIDbContextOptions
, which seems to be the responsibility ofUseLinqToDB
. Anyway, I suggest adding a configuration parameter toCreateLinqToDbContext
forDataOptions
to make configuration like that possible.