This is my code:
DateTime epoch = new DateTime(1970, 1, 1);
var result = (from row in InBoundtable.AsEnumerable()
group row by row.Field <string> ("Date") into grp
select new {
AbandonCalls = grp.Sum((r) => Double.Parse(r["AvgAbandonedCalls"].ToString())),
Date = ((DateTime.Parse(grp.Key)) - epoch).TotalMilliseconds
}).ToList();
where InBoundtable is a datatable.
now I have a string array campains
my question is there a way so in the select statement above I can make where the campain field, which is a string field, is either one of the values in the campains array?