private void EnsureCommandTextSet() { if (StringHelper.IsNullOrWhiteSpace(_commandText)) throw new InvalidOperationException("CommandText is not set."); }