Possible Duplicate:
Use dictionary inside linq query
How can I make a IN
statement with LINQ ?
What I have
var t = from i in emails
where i.Credencials_Id == agenciaid
select new
{
i.Alias,
i.Name,
i.Description,
i.Comentas,
i.DateHour,
i.Imovel_Id,
i.Email,
i.EmailCaptador
};
What I Want (Something like this)
var t = from i in emails
where i.Credencials_Id IN (agenciaid)
select new
{
i.Alias,
i.Name,
i.Description,
i.Comentas,
i.DateHour,
i.Imovel_Id,
i.Email,
i.EmailCaptador
};
int imovel = Convert.ToInt32(t.First().Imovel_Id);