public UnitOfWork(DbContext context, bool autoCommit = false) { this.autoCommit = autoCommit; contextHandler = ContextHandler.GetContext(context); }