Vb.net &引用;sum";字符串的长度以“,”分隔&引用;linq中的实体

Vb.net &引用;sum";字符串的长度以“,”分隔&引用;linq中的实体,vb.net,linq,linq-to-entities,Vb.net,Linq,Linq To Entities,我需要一个Linq到实体的查询,结果是一个unic字符串,用“,”分隔。 我尝试使用Cont=String.Join(“,”,op.operacionescontendores.Select(Function(jj)jj.Id.ToString.ToArray()) 例如: (From op In dContext.Operaciones Join opTr In dContext.OperacionesTransito On opTr.idOperacion Equals op.id Gro

我需要一个Linq到实体的查询,结果是一个unic字符串,用“,”分隔。 我尝试使用
Cont=String.Join(“,”,op.operacionescontendores.Select(Function(jj)jj.Id.ToString.ToArray())

例如:

(From op In dContext.Operaciones
Join opTr In dContext.OperacionesTransito On opTr.idOperacion Equals op.id
 Group Join opTrContenedor In dContext.OperacionesContenedores On opTr.idOperacion Equals opTrContenedor.IdOperacion Into grpOpTrContenedor = Group
From opTrContenedor In grpOpTrContenedor.DefaultIfEmpty()
Select New With {.idOperacion = op.id,
.Expediente = op.ReferenciaEmpresaResponsable,
.ReferenciaCliente = op.ReferenciaEmpresaCliente,                                            
.Cont = String.Join(", ", op.OperacionesContenedores.Select(Function(jj) jj.Id.ToString).ToArray())
}).Distinct().AsQueryable
这应该返回“便利”、“引用客户”、“con1、cont2、cont3”,但在查询执行中会产生错误:


LINQ to Entities无法识别方法“System.String Join(System.String,System.String[])”方法,并且无法将此方法转换为存储表达式

Linq到实体无法转换
字符串。请将
方法连接到SQL。您需要在客户端连接字符串。就在30分钟前:@YD1m:)确切地说,这里不需要回答。请尝试查看
聚合
方法。谢谢我尝试使用字符串。连接,因为聚合会产生错误