Browse Source

Cleaned-up BuyerRepository.cs

pull/417/head
Cesar De la Torre 7 years ago
parent
commit
e36e606d64
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/Services/Ordering/Ordering.Infrastructure/Repositories/BuyerRepository.cs

+ 1
- 4
src/Services/Ordering/Ordering.Infrastructure/Repositories/BuyerRepository.cs View File

@ -11,7 +11,6 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Infrastructure.Repositor
: IBuyerRepository
{
private readonly OrderingContext _context;
public IUnitOfWork UnitOfWork
{
get
@ -29,7 +28,6 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Infrastructure.Repositor
{
if (buyer.IsTransient())
{
//TODO: when migrating to ef core 1.1.1 change Add by AddAsync-. A bug in ef core 1.1.0 does not allow to do it https://github.com/aspnet/EntityFramework/issues/7298
return _context.Buyers
.Add(buyer)
.Entity;
@ -37,8 +35,7 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Infrastructure.Repositor
else
{
return buyer;
}
}
}
public Buyer Update(Buyer buyer)


Loading…
Cancel
Save