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

Implement BatchInsert

Open AlexRadch opened this issue 7 years ago • 3 comments

I think BatchInsert implementation is like BatchUpdate implementation but is little easy.

// Copy OrderItems from fromOrder to toOrder
var items = fromOrder.Items();
items.BatchInsert(i => new OrderItem { OrderId = toOrder.Id, ItemName == i.ItemName, ItemCount == i.ItemCount});

AlexRadch avatar Jan 31 '18 02:01 AlexRadch

Hello @AlexRadch ,

Thank you for your suggestion.

BatchInsert is already in our todo list. Unfortunately, for the next few months, we will focus for our free support to improve some stuff on our side such as: Making .NET Fiddle compatible with Entity Framework to allow to create online examples and re-working our core to better handle all providers.

We will soon provide a roadmap.

Best Regards,

Jonathan

JonathanMagnan avatar Feb 04 '18 14:02 JonathanMagnan

We would love the BatchInsert feature too!

inprotech-dev avatar Oct 16 '18 21:10 inprotech-dev

Thank you for the reminder.

We will start to look at it to add it on https://entityframework-classic.net/

Once it's stable, we will try to import the feature in EF Plus as well.

Best Regards,

Jonathan

JonathanMagnan avatar Oct 17 '18 03:10 JonathanMagnan