Thanks for your reply. I checked the documentation an I constructed this code snippet:
VehicleTypedView vehicles = new VehicleTypedView();
ResultsetFields fields = new ResultsetFields(4);
fields.DefineField(VehicleTypedViewFields.Lastmodifiedvoertuig, 0, "Lastmodifiedvoertuig");
fields.DefineField(VehicleTypedViewFields.Lastmodifiedmerktype, 1, "Lastmodifiedmerktype");
fields.DefineField(VehicleTypedViewFields.Lastmodifiednap, 2, "Lastmodifiednap");
fields.DefineField(VehicleTypedViewFields.Lastmodifiedvoertuigrelatie, 3, "Lastmodifiedvoertuigrelatie");
fields[0].ExpressionToApply = new DbFunctionCall("GREATEST", new object[] { VehicleTypedView.Lastmodifiedvoertuig, VehicleTypedView.Lastmodifiedmerktype });
fields[2].ExpressionToApply = new DbFunctionCall("GREATEST", new object[] { VehicleTypedView.Lastmodifiednap, VehicleTypedView.Lastmodifiedvoertuigrelatie });
DataTable results = new DataTable();
TypedListDAO dao = new TypedListDAO();
dao.GetMultiAsDataTable(fields, results, 0, null, null, null, true, null, null, 0, 0);
foreach (DataRow row in results.Rows)
{
//do something
}
However, I'm stuck again now. how do I apply the DbFunctionCall- filter to my typed view? I would like to use that typed view so I have my results in a strongly typed way. Also, in my query I apply the 'GREATEST' function on the results of 2 other GREATEST-function calls. How do I map that to my LLBLGen filter?
Thanks again!
peerke