a few days back i was trying the new ORM for delphi from Devart called EntityDAC, well i was reading the docs specific the LINQ part, when i saw something like:
Linq.From(Emp).Where(Emp['Sal'] > 1000)
got to say that wake me up the first moment i saw. the expression "Emp['Sal'] > 1000" isn't a lambda expression?! since the trial version is this component don't come with sources i couldn't figure out how Where function/procedure is declared.
reference: http://www.devart.com/entitydac/docs/ -> Linq Queries -> Linq Syntax -> Scroll down to Where session
I mentioned this in a blog post a few months ago. I don't have the source to look at, but it's almost certainly done this way:
Emp['Sal']
returns a value of a record
type>
operator here does not return a boolean, but rather another record.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With