我有一个加入列表的问题<>在linq to sql表上,
listaFcbm是一个列表是Fcbm和entLogCancelacionAcreditacion的表是复杂对象
var listaFcbm = new Fcbm_Methods().ObtenAcreditacionesEliminadasLog(inicio, fin);
using (FrCEntities db = new FrCEntities())
{
var lista = (from a in db.FrCs
join b in listaFcbm on a.FrCs_Name equals b.Fcbm_Name
join c in db.HIS_MOVS on b.Fcbm_Mov_Id equals c.Mov_Id
where b.Fcbm_Mov == 1 && a.FrCs_Actv == 1
select new entLogCancelacionAcreditacion
{
No_Socio = a.FrCs_Name,
NombreCompleto = a.FrCs_Fst_Name + " " + a.FrCs_Mdl_Name + " " + a.FrCs_Lst_Name,
Hotel = c.prop_code,
Reservacion = c.rsrv_code,
Puntos = b.Fcbm_Points,
FechaEntrada = b.Fcbm_Checkin,
FechaSalida = b.Fcbm_Checkout,
Usuario = b.Fcbm_Add_Usr,
TipoAcreditacion = b.Fcbm_Code
}).ToList();
return lista;
}
,错误是
Unable to create a constant value of type ' BLCityPremios.Fcbm ' . Only primitive types or enumeration types are supported in this context .
有什么问题?