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)
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)