似乎是與外的一個Bug亞音速3加入語句,或者也許這只是我的無知,但以下胡扯出來:亞音速外部聯接
var Objeto = from t in Table1.All()
join su in table2.All() on t.Id equals su.Id
join tab2 in Table1.All() on t.PId equals tab2.Id into gj
from j in gj.DefaultIfEmpty()
select new
{
t.Field1,
SN = su.Field123,
PTN = (j == null ? null : j.FieldABC)
};
有了:
The expression of type 'System.Linq.IQueryable` xxxx is not a sequence
如果我刪除外部連接,它完美的作品..... – hminaya 2009-10-14 15:52:41