0
こんにちは私はDataSetを持っていて、それはヘッダーと呼ばれるテーブルを持っています。ヘッダーテーブルには、Long Agency Codeというフィールドがあります。 Wageと呼ばれるテーブルにはLong Agency Codeというフィールドもあります。ヘッダーテーブルで使用可能なロング代行コードに基づいてウェイジテーブルをフィルタリングします。次のコードは、以下を示しています。DataRowフィルター式
DataTable dt = DataSet.Tables["Header"];
DataRowCollection headerRowCollection = dt.Rows;
foreach (DataRow headerRow in headerRowCollection)
{
FixedOutputter outputter = GetOutputter("Header", streamWriter);
MapElementCollection mapElementCollection = MapUtility.GetMapElementCollection(DataMap, "Header", DataMapFormatters);
outputter.OutputSingleRow(headerRow, mapElementCollection);
string filterExpression = "Long Agency Code == '" + headerRow["Long Agency Code"] + "'";
DataRow[] wageRowCollection = DataSet.Tables["Wage"].Select(filterExpression);
それはメッセージと非常に最後の行で吹く:「構文エラー: 『庁』演算子の後にオペランドがありません」
ありがとう、それはトリックでした! – SaiBand