我正在尝试做一个简单JOIN
但LINQ
发生错误
the type of one of the expressions in the join clause is incorrect
代码:
var select2 = from si in db.San_Imovel
join sic in db.San_Imovel_caracteristica <--- ERROR
on si.Imovel_Id equals sic.Imovel_Id
where si.Credenciada_Id == credenciada_Id
select new
{
si.Celula_Id,
si.Credenciada_Id,
si.Imovel_Id,
si.NomeArquivo,
si.TipoDsc1,
si.BairroDsc1,
si.AreaRealPrivativa,
si.ValorImovel,
si.ValorCondominio,
si.ValorIPTU,
si.Lat2,
si.Lon2,
si.Bairro1,
si.NomeCidade,
si.Transacao_ID
};