0
我試圖找出如何添加索引到LINQ查詢,以加快搜索添加一個索引LINQ查詢
var confirmation = (from p in _database.Participations where (p.accountID == bulletin.receiverID && p.eventID == @event.ID) select p).FirstOrDefault();
我想在p.eventID添加一個索引字段
謝謝!
這不是LINQ問題或C#問題。該索引需要在您的數據庫中 - 與您的DBA交談。 – 2011-04-08 08:17:14