public ReadOnlyUnitOfWork(IFullDataContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
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 }