linq datacontext 查询问题
StockClass类包含Good类。
代码:
result1 = DBClass.MyDataContext.GetTable(Of StockClass).ToList
result2 = result1 .Where(Function(s) s.GoodCode = GoodCode Or s.Good.GoodName = GoodName).ToList
错误在:s.Good.GoodName = GoodName得不到识别
请问谁有过这个类似经历 怎么处理的?