Hi,
I am currently implementing a WCF service which through a business layer is using LLBLGen generated code in the data access layer.
Lets assume I have a Customer entity (not CustomerEntity generated by LLBLGen) defined as part of the data contract for the service. I also have a:
_GetCustomersResponse GetCustomers(GetCustomersRequest request) _
operation defined which is supposed to retrieve customers from the database. GetCustomersRequest message will accept filters, sorting expressions, pagination data etc. I have a couple of questions related to this scenario (for now focusing only on filtering part of the problem):
1) I assume I can use RelationPredicateBucket as part of web service contract (I would like to avoid that however)?
2) Is there any suggested way of addressing such scenario with LLBLGen?
3) Is there a way to construct a PredicateExpression using the names (string representation) of the entity properties? For example instead of
new PredicateExpression().Add(CustomerFields.FirstName == "One");
use
new PredicateExpression().Add("FirstName" == "One");
Best regards,
Robert Wilczynski.