0
這可能嗎?包含一組過濾記錄
var results = (from c in _context.properties
where c.strap == somevalue
select c).include("characteristics).where(characteristics.cat_cd != 'DD');
基本上我想創建這個查詢。隨着應用程序的增長,我將包含其他表格。
select * from properties p,characteristics c
where
p.strap = c.strap
and c.cat_cd <> 'DD'
但是你聲明'on'子句。我想避免這種情況,並有EF處理關係,我會應用過濾器。 –