EntityFramework-Effort icon indicating copy to clipboard operation
EntityFramework-Effort copied to clipboard

IDataLoader usage documentation is misleading and behavior is weird.

Open jons-aura opened this issue 7 years ago • 1 comments

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

jons-aura avatar Sep 28 '18 16:09 jons-aura

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 ExtensionsEntity Framework ClassicBulk OperationsDapper PlusLinqToSql Plus

Runtime Evaluation Eval.Execute("x + y", new {x = 1, y = 2}); // return 3 C# Eval FunctionSQL Eval Function

JonathanMagnan avatar Oct 03 '18 13:10 JonathanMagnan