Hello I'm using dynamic linq and I have query like this one:
var result = DataContext.Table
.Where("Code == @0", CodeId)
.Select("new(SGL AS First, DBL AS Second)");
How can I loop the result?
I'm using something like this code but it doesn't work:
foreach (var item in result)
{
total = subtotal + Int32.Parse(item.ToString()) * 2
}
It returns the following error:
The input string does not have the correct format.