IDataLoader usage documentation is misleading and behavior is weird.
The documentation for the DbConnectionFactory CreateTransient overload that takes an IDataLoader says
If the database is accessed the first time, then its state will be initialized by the provided
object.
The problem is that what it actually does is get and store the Type object and the value of the Argument parameter which although there is a documentation note that
Gets or sets the argument that describes the complete state of the data loader.
this is not at all clear from the CreateTransient usage documentation
https://github.com/zzzprojects/EntityFramework-Effort/blob/1b772b2dca1249132dfb874e77afdc73a0c8e80f/Main/Source/Effort.Shared/DbConnectionFactory.cs#L160
Thank you for reporting @jons-aura ,
We will look at it.
Best Regards,
Jonathan
Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Entity Framework Classic • Bulk Operations • Dapper Plus • LinqToSql Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function