Short usage added to IUnitOfWork get methods.
This commit is contained in:
parent
f026de60cf
commit
2667568978
@ -4,13 +4,7 @@ public class BuyerRepository
|
||||
: IBuyerRepository
|
||||
{
|
||||
private readonly OrderingContext _context;
|
||||
public IUnitOfWork UnitOfWork
|
||||
{
|
||||
get
|
||||
{
|
||||
return _context;
|
||||
}
|
||||
}
|
||||
public IUnitOfWork UnitOfWork => _context;
|
||||
|
||||
public BuyerRepository(OrderingContext context)
|
||||
{
|
||||
|
@ -5,13 +5,7 @@ public class OrderRepository
|
||||
{
|
||||
private readonly OrderingContext _context;
|
||||
|
||||
public IUnitOfWork UnitOfWork
|
||||
{
|
||||
get
|
||||
{
|
||||
return _context;
|
||||
}
|
||||
}
|
||||
public IUnitOfWork UnitOfWork => _context;
|
||||
|
||||
public OrderRepository(OrderingContext context)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user