public void Validate(Context context) { // delayBeforeCheck - optional if (string.IsNullOrEmpty(_connectionString)) { throw new ArgumentNullException("ConnectionString is either null or of zero length"); } _connectionString = context.SubstituteWildCards(_connectionString); if (null == _sqlQuery) { throw new ArgumentNullException("ConnectionString is either null or of zero length"); } _sqlQuery.Validate(context); }
public void Validate(Context context) { // delayBeforeExecution - optional if (string.IsNullOrEmpty(_connectionString)) { throw new ArgumentNullException("ConnectionString is either null or of zero length"); } _connectionString = context.SubstituteWildCards(_connectionString); // numberOfRowsAffected - no validation if (null == _sqlQuery) { throw new ArgumentNullException("ConnectionString is either null or of zero length"); } else { _sqlQuery.Validate(context); } }