internal IEnumerable <IServerResponseObject> QueryEnum(NpgsqlCommand queryCommand) { if (CurrentReader != null) { if (!CurrentReader._cleanedUp) { throw new InvalidOperationException( "There is already an open DataReader associated with this Command which must be closed first."); } CurrentReader.Close(); } return(CurrentState.QueryEnum(this, queryCommand)); }