Remove redundant operation parameter binding

This commit is contained in:
Matija Koželj 2023-01-24 17:41:30 +01:00
parent ae0131086e
commit 38d8781734

View File

@ -275,10 +275,6 @@ internal class EntityStorage<TEntity> : IAsyncEnumerable<TEntity>, IStorage<TEnt
*/ */
if (recordsAffected == 0 && args.Operation.Concurrency == DataConcurrencyMode.Enabled) if (recordsAffected == 0 && args.Operation.Concurrency == DataConcurrencyMode.Enabled)
throw new DBConcurrencyException($"{SR.ErrDataConcurrency} ({typeof(Entity).Name})"); throw new DBConcurrencyException($"{SR.ErrDataConcurrency} ({typeof(Entity).Name})");
/*
* Bind storage parameters with operation parameters.
*/
ReturnValueBinder.Bind(writer.Operation, args.Operation);
return recordsAffected; return recordsAffected;
} }