Here is my code:
var query = from row1 in table.AsEnumerable()
let time = row1.Field<DateTime>("time")
let uri = row1.Field<string>("cs-uri-stem")
let ip = row1.Field<string>("c-ip")
let questionid = row1.Field<int>("questionid")
where questionid == int.Parse(table.Rows[x]["questionid"].ToString())
select new
{
time,
uri,
ip,
questionid
};
The ip column should be unique. I can't have duplicate items in the ip field. is it possible to do this in linq