private void CheckContextOpen() { if(_isOpen == false) { throw new Exception("Context is not open"); } }