Being a pattern, LINQ supports operations over object collections just as well 
as it supports building expression trees to translate into SQL (or XQuery, or 
web service calls...).  The benefit, of course, is that you use the same query 
syntax no matter the nature of the data source.
 
It would probably be interesting porting the Enumerable static class (which 
holds all the LINQ to Object language extensions) to pure python, so that IP 
code that made use of it could still function under CPy.

________________________________

From: [EMAIL PROTECTED] on behalf of Matt Clinton
Sent: Mon 10/1/2007 8:22 AM
To: Discussion of IronPython
Subject: Re: [IronPython] [python] Re: Object DBs - Zope/Plone vs LINQ?



Thanks for the rich responses - illuminating.

To be a little more specific, I was thinking about the Object/Relational
Designer in the LINQ article: not so much the SQL-variant syntax to
access traditional DBs (sweet as that is, there's plenty of good ways
already, ala DBI), but was wondering the language-support level for
database-like collections of pythonic objects, like ZODB.

It looks to me like IPy has two ways to get to roughly the same end: one
down the CPy route, the other through LINQ.  As usual, "both" is
probably the preferred answer.

Thanks again,
-- Matt

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to