public ReadOnlyUnitOfWork(IFullDataContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Exemplo n.º 2
0
 public UnitOfWork(IFullDataContext context) : base(context)
 {
     // TODO: add transaction on InnerContext, pass transaction scope / level in the constructor
     // This would require proper strategies, maybe more methods in Factory for different optimization scenarios
 }