question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migration from BLToolkit: Where is update batch?

See original GitHub issue

Where can I find the following method in Linq2db? Is replacement not implemented?

I want to get bulk update of all fields of all items in collection.

public static int Update<T>(this DbManager dataContext, int maxBatchSize, IEnumerable<T> list)
{
    return new SqlQuery<T>(dataContext).Update(dataContext, maxBatchSize, list);
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
MaceWinducommented, May 12, 2017

Yes, this is a limitation of current Merge API we have and unfortunately it is not possible to disable insert operation without changes to linq2db source code. This will be fixed in new Merge API I am currently working on and expect to release preview version in a couple of weeks.

0reactions
MaceWinducommented, May 21, 2017

@hardhub for now (next week or two) I will work solely only on merge support for RDBMS that supports MERGE INTO command. After I will finish with it, I will see what we can do for RDBMS that support UPSERT commands to support them in Merge API.

If you are interested, you can try to build linq2db from this branch: https://github.com/MaceWindu/linq2db/tree/merge_improvements

Note that it will work only with SQL Server for now as I want to test all required functionality on one provider and then tune support for others.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to update collection via BlToolkit
This method allows you to do batch update by passing collection of entities as a parameter. In your case use it like this:...
Read more >
Newest 'bltoolkit' Questions
I have a long string value and i got error while update operation. ... BLToolkit has InsertBatch method to insert a set of...
Read more >
Manage migration batches in Exchange Online
To access the Migration dashboard in the new EAC, go to new Exchange admin center, navigate to Migration > Batch. The following screenshot ......
Read more >
BL Toolkit Alternatives - ORM - Awesome .NET - LibHunt
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations. dotnet logo ...
Read more >
UpdateBatch Method - ActiveX Data Objects (ADO)
Use the UpdateBatch method when modifying a Recordset object in batch update mode to transmit all changes made in a Recordset object to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found