Hello,
I am new to O/R mapping and have a question, several actually.
When looking at retrieving filtered collections of objects using LLBLGEN, I see that you must use predicate expressions, predicate relations (to represent joins), and the predicate relation bucket.
In essense, you are writing the query (joins + filter) using an object based approach. This format is incredibly verbose compared to the SQL equivalent of an expression, ie. a simple expression like "(field1 > field2 or field3 < (0.5 * field4))" is very verbose using predicate expressions compared to the equivalent SQL expression shown.
My question is for someone who has used LLBLGEN. I see huge time savings by using the O/R mapper approach for simple table and relations operations, but when you take into account the verbosity (if that is a word) of the expression language compared to traditional SQL expressions, does it still end up being beneficial to use the O/R mapper?
I am just struggling in trying to weigh the increase in complexity of the expressions versus the beautiful lack of having to generate stored procedures for everything?
Is there an SQL type expression object where you don't have to use those verbose predicate objects for every filter, but instead can insert simple SQL WHERE clause expressions with parameters?
Lastly, why do we need to add relation objects to the predicate relation bucket when the relations in the project have already been defined?
Thanks very much for your time.
I am really hoping someone with more experience than I can shed some light on these issues for me and set me on the right path.
Thanks.
S Shannon