You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quite peculiar issue.
BulkUpdate uses MERGE that has EXISTS to skip updating same rows, but in this case seems that sql comparison L to l is same, probably because of collation: 'Chinese_PRC_CI_AS'.
With BulkConfigOmitClauseExistsExcept it can be turned of, just call it like this: await _baseBomDetailRep.Context.BulkUpdateAsync(bulckall, new BulkConfig { OmitClauseExistsExcept = true });
Activity
borisdj commentedon Oct 8, 2021
What Db are you using, I've tested it with both SqlServer and works fine.
Generated Sql:
Maybe you Db is case insensitive or something.
Anyway if you can write a test where it would be reproducible.
yanzubenyan commentedon Oct 8, 2021
yanzubenyan commentedon Oct 8, 2021
Just like in the picture, my l update to the sqlserver database is still L
borisdj commentedon Oct 8, 2021
I see the issue is actually BulkUpdate and not BatchUpdate, but still I'm not able to reproduce it.
yanzubenyan commentedon Oct 8, 2021
text.zip
borisdj commentedon Oct 8, 2021
Quite peculiar issue.
BulkUpdate uses MERGE that has EXISTS to skip updating same rows, but in this case seems that sql comparison L to l is same, probably because of collation: 'Chinese_PRC_CI_AS'.
With BulkConfig OmitClauseExistsExcept it can be turned of, just call it like this:
await _baseBomDetailRep.Context.BulkUpdateAsync(bulckall, new BulkConfig { OmitClauseExistsExcept = true });yanzubenyan commentedon Oct 8, 2021
thank you for your answer
[-]Batch update is case insensitive[/-][+]BulkUpdate is case insensitive[/+]