というDataTable名前がありdtます。と という名前の 2 つの列がatype_codeありmoduleます。ここで、特定の に基づいてモジュールを照会する必要がありますatype_code。
ここに私が書いたコードがありますが、動作しません。
DataTable dt = GetATypeCodeList();
var accType = (from myAccType in dt.AsEnumerable()
where myAccType.Field<string>("atype_code") == aTypeCode.Trim()
select myAccType.Field<string>("module"));
acctypeですSystem.Data.EnumerableRowCollection<System.String>。