Help with object-oriented queries

From: Gili (cowwo..bs.darktech.org)
Date: Sun Sep 04 2005 - 18:52:56 EDT

  • Next message: Gili: "DataContext.performNonSelectingQuery()"

            I'm trying to translate this SQL query into a object-oriented form (for
    use with SelectQuery)...

    from contentType as type where type.id not in (select image.contentType
    from Image as img)

            So basically, iterate over all images in the database and return the
    list of all content-types in the DB but not used by any image (i.e. find
    the orphan content-type rows).

            I'm not familiar with the concept of query roots or how to issue a OO
    query which involves more than a single object.

    Gili

    -- 
    http://www.desktopbeautifier.com/
    



    This archive was generated by hypermail 2.0.0 : Sun Sep 04 2005 - 18:52:55 EDT