Skip to content

update by query #124

Description

@odaikurd

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions