コード例 #1
0
 public UnitWork(UnitWorkInfo unitWorkInfo, AppDbContext appDbContext, IMapper mapper)
 {
     Info         = unitWorkInfo;
     Context      = appDbContext;
     Mapper       = mapper;
     _transaction = null;
 }
コード例 #2
0
 public EFRepositoryBase(UnitWork unitWork)
 {
     _unitWork = unitWork;
     _context  = _unitWork.Context;
     _info     = _unitWork.Info;
 }