0
我有一個基於文檔類型的索引。將字符串追加到linq-to-sql查詢
我想根據這些指標建立我的LINQ到SQL查詢。用戶可能只填寫一些索引或全部索引。
我需要somenthing像
Gedi.Models.OperacoesModel.indexMatrix[] IndexMatrixArr = (from a in context.sistema_Documentos
join b in context.sistema_Indexacao on a.id equals b.idDocumento
join c in context.sistema_Indexes on a.idDocType equals c.id
join d in context.sistema_DocType_Index on c.id equals d.docTypeId
where d.docTypeId == idTipo and "BUILT STRING"
orderby b.idIndice ascending
select new Gedi.Models.OperacoesModel.indexMatrix {
idDocumento = a.id,
idIndice = b.idIndice,
valor = b.valor
}).Distinct().ToArray();
這種內置的字符串應該在代碼中像
FIELD1 ==和場2 == b
這可能早BUIT?
我讀過你的問題5次,我仍然無法理解它。考慮改寫。 –