任何想法如何检索 EnumerableQuery 中的值我想检索“Y”或 Null 以创建、更新、删除列,就像我对 Read 列所做的一样,但不是返回“Y”或 NULL,而是返回为 EnumerableQuery,并且我不知道怎么做
from a in MenuFunctions
where a.Scd == 'R' && a.Ise == 'Y'
select new{
a.Mcd,
Read = a.Ise,
Create = (from b in MenuFunctions
where b.Pcd== a.Mcd && b.Psc == a.Scd && b.Ise=='Y' && b.Scd =='C'
select b.Ise),
Update = (from b in MenuFunctions
where b.Pcd== a.Mcd && b.Psc == a.Scd && b.Ise=='Y' && b.Scd =='U'
select b.Ise),
Delete = (from b in MenuFunctions
where b.Pcd== a.Mcd && b.Psc == a.Scd && b.Ise=='Y' && b.Scd =='D'
select b.Ise),
}
结果