OK, so I have a question,
Has anyone attempted to create a predicate builder?
I have started one but am no where near completion and just had a couple huge projects thrown at me and won't be able to finish it for awhile, but with our developers the largest stumbling block is the migaration from TSQL to Predicates.
Our people are all excellent TSQL coders but always run into, how do I make a predicate for X etc.
I am not really talking about a dynamic Predicate builder for runtime, just a utility to create static code to show the joins, and conditions.
My current project just uses 'placeholder' entity to table names, and requires some search and replace to actually use. I want to build this out to dynamically load LLBLGen entities (easy), use reflection to pull out the entities themselves (medium), associate the entities to tables (easy) then build a TSQL query on the tables and show the results in a grid (easy), then translate the query to say a block of C# code using predicates, use the GetQuery functionality of my SQL Logger function and display original vs new predicate version of sql, then cut/copy paste it into my app.
A different alternative I guess would be a predicate 'tester' where you dynamically load LLBLGen DLL, write a predicate and use the GetQuery functionality to show the user what they have built along the way, using a grid for result sets, but this approach is more for predicate validation than it is predicate building, but could be used in that manner in a trial/error approach.
OK, enough rambling, I was just curious if anyone else has done this etc. before I waste too much more time trying to complete this project, or if anyone had any input on what new users to LLBLGen would find useful.
John