camlex cannot be translated into caml workflow status (WorkflowStatus)
description
Hi
this is excellent framework for CAML.
i got a small problem while i implement Camlex.
var exp = new List<Expression<Func<SPListItem, bool>>>();
exp.Add(x => ((CamlexNET.DataTypes.WorkflowStatus)x[status] == (CamlexNET.DataTypes.WorkflowStatus)ddlStatus.SelectedValue));
the dropdown list values are 2, 16, 17
in run time its giving the error
camlex cannot be translated into caml workflow status
Expression 'x => (Convert(x.get_Item(value(List_View_Filter_WebPart.VisualWebPart1.VisualWebPart1UserControl+<>c__DisplayClass0).status)) = Convert(Convert(value(ASP._controltemplates_list_view_filter_webpart_visualwebpart1_visualwebpart1usercontrol_ascx).ddlStatus.SelectedValue)))' can not be translated into CAML