int complexQuery = (from e in mycontext.CreateQuery()
where e.new\_QW1 != null
select e.new\_QW1).Count();
if (complexQuery < 1)
{
var newQuery = "HasData";
entity.Attributes.Add("new\_testcomplexquery", newQuery);
}
else
{
var newQueryToo = "Blank";
entity.Attributes.Add("new\_testcomplexquery", newQueryToo);
}
I want to use the results of complexQuery in an If statement but the value of complexQuery doesnt appear to be getting picked up. Anyone know why?