Browse Source
Merge pull request #15810 from abpframework/UnitOfWork
Remove the key from the exception.
pull/15813/head
liangshiwei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.Uow/Volo/Abp/Uow/UnitOfWork.cs
|
|
|
@ -193,7 +193,7 @@ public class UnitOfWork : IUnitOfWork, ITransientDependency |
|
|
|
|
|
|
|
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); |
|
|
|
@ -221,7 +221,7 @@ public class UnitOfWork : IUnitOfWork, ITransientDependency |
|
|
|
|
|
|
|
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); |
|
|
|
|