Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update by query #124

Open
odaikurd opened this issue Nov 6, 2018 · 1 comment
Open

update by query #124

odaikurd opened this issue Nov 6, 2018 · 1 comment

Comments

@odaikurd
Copy link

odaikurd commented Nov 6, 2018

Hello

there is a bug when using the following code:

EFBatchOperation.For(db, db.Accounts)
.Where(x => x.AccountID == glEntry.AccountID)
.Update(x => x.Balance, x => x.Balance + delta);

sql profiler:
exec sp_executesql N'UPDATE [dbo].[Account] SET [Balance] = ([Balance] + @p__linq__0) WHERE [AccountID] = @p__linq__0',N'@p__linq__0 bigint,@p__linq__0 decimal(11,2)',@p__linq__0=10001,@p__linq__0=-100000000.00

seems the where parameter (@p__linq__0) is using same update parameter name (@p__linq__0)

@RudeySH
Copy link

RudeySH commented Nov 15, 2018

I'm interested in fixing this issue, however I'm not the author of this project which seems to be dead.

I'm currently maintaining a fork of EFUtilities which already includes many fixes. Could you try and see if the bug you found is still present in my fork? If so, I recommend opening an issue there and I'll see what I can do.

https://github.com/RudeySH/EntityFramework.Utilities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants