Hi,
is that still valid in LLBLGen 2.0.07?
I mean: is a myEntity.Fields["fieldname"] still the same as myEntity.Fields["FIELDNAME"] or myEntity.Fields["fieldName"]?
I'm currently trying to create a sortfilter for which I have the sort field as a string value only:
string myField = "cus_LastName";
customer_Entity() customer = new customer_Entity();
IEntityField sortFld = customer.Fields[myField];
ISortExpression sorter = new SortExpression(new SortClause(sortFld, SortOperator.Ascending));
customer_Collection customers = new customer_Collection();
customers.GetMulti(null,0,sorter);
This code fails on the last line, because "cus_LastName" wasn' t found.
However, if I set myField="Cus_Lastname" (so, starting with a capital C), it works.
Unfortunately all my database fields start with a lowercase, and LLBLGen always seems to set the first letter in UpperCase. Is there no way to generate without touching entitynames, fieldnames etc. at all?
Thanks for any help!