This is how our queries are formatted, and they do work:
IObjectScope
scope = ProfitabilityScopeProvider.ObjectScope();
var branchItems = from basedata in scope.Extent<Ge.Wf.Profitability.Data.BaseData>()
where basedata.BranchNumber == 1234
select basedata;
But I'd like to use a string for the where clause for more dynamic queries, like is sampled in the examples in the link above. I tried to modify my query to look like the example from Alexander (of Telerik), but the parameters expected by the where() always include something called a Linq Expressions Predicate. What do I need to do to make the following work? Or better yet, in the format above, but with a string for the where clause.
var branchItems = scope.Extent<Ge.Wf.Profitability.Data.BaseData>()
.Where("basedata.Branchname == @0", 1234);