Silverlight和linq / ria选择如何,执行以下操作

时间:2011-08-05 06:37:58

标签: silverlight linq ria

query_TMEditSheet = _
                    From tm In Context_DomainService1TMTM.GetTMTMSQuery()
                    From ts In Context_DomainService1TMTM.GetGECODsQuery()
                    Where tm.tmsDate = MainPage.TimeSheetDateSelect_selectdate.Date
                    Where tm.tmsUserID = ts.codType
  

在此上下文中无法访问定义方法

想要选择其用户名存在于codType(gecod表格)中的tmtms记录

请指导

1 个答案:

答案 0 :(得分:0)

我认为你想做的是:

from tm in Context_DomainService1TMTM.GetTMTMSQuery()
join ts in Context_DomainService1TMTM.GetGECODsQuery() on tm.tmsUserID equals ts.codType
where tm.tmsDate = MainPage.TimeSheetDateSelect_selectdate.Date