public SqlCommand CreateCommand(SqlConnection sqlConnection, params SqlParameter[] extraParameters) { var commandParameters = extraParameters == null ? CommandParameters : CommandParameters.Concat(extraParameters.Where(x => x != null)); return(CommandText.CreateSqlCommand(sqlConnection, commandParameters)); }