MarcVangrieken wrote:
as we think string-based filtering isn't the way to go, as it can lead to errors at runtime instead of at compile time.
That's very true, i understand your POV. Although i must say that in the project i've been working in for the last 2 years, i've never seen any errors like these make it to production... I think people generally are carefull with these things. In the service layer this argument is more important to me because there's simply much more code. LLBLGen is doing a great job there in compile-time checking the lot.
The reason i was looking in to this "requirement" was the fact that phasing-out LLBLGen in the future (i hope not but you never know) would be somewhat easier (but not easy) if the 100thes of forms don't need to be partially rewritten.
Kind Regards,
I understand, I hope Microsoft does a decent job with Linq so it indeed is no longer necessary, though I fear they leave important things out of it.
What's a bit of a problem with string-based filters is that it requires a complex parser to cover all the possible filters, then it has to convert the parse tree to field objects and predicate objects, which is a bit of a problem as the code doesn't have access to the factories (as it's inside the ormsupportclasses).