var itemOne = from n in db.TimeTable
where n.CodeNo == code
select n.CodeNo;
var itemTwo = from p in db.Address
where (itemOne.Contains(p.AddCode))
select p;
Got this error when run-
LINQ to Entities does not recognize the method 'Boolean Contains[Decimal](System.Linq.IQueryable`1[System.Decimal], System.Decimal)' method, and this method cannot be translated into a store expression.