Browse Source

Remove the key from the exception.

Resolve #15808
pull/15810/head
maliming 4 years ago
parent
commit
7f0e1e3ee5
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 4
      framework/src/Volo.Abp.Uow/Volo/Abp/Uow/UnitOfWork.cs

4
framework/src/Volo.Abp.Uow/Volo/Abp/Uow/UnitOfWork.cs

@ -193,7 +193,7 @@ public class UnitOfWork : IUnitOfWork, ITransientDependency
if (_databaseApis.ContainsKey(key)) if (_databaseApis.ContainsKey(key))
{ {
throw new AbpException("There is already a database API in this unit of work with given key: " + key); throw new AbpException("There is already a database API in this unit of work with given key.");
} }
_databaseApis.Add(key, api); _databaseApis.Add(key, api);
@ -221,7 +221,7 @@ public class UnitOfWork : IUnitOfWork, ITransientDependency
if (_transactionApis.ContainsKey(key)) if (_transactionApis.ContainsKey(key))
{ {
throw new AbpException("There is already a transaction API in this unit of work with given key: " + key); throw new AbpException("There is already a transaction API in this unit of work with given key.");
} }
_transactionApis.Add(key, api); _transactionApis.Add(key, api);

Loading…
Cancel
Save