Re: Subclassing a DataObject

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Jul 01 2005 - 15:32:44 EDT

  • Next message: Todd O'Bryan: "Queries that should return single objects"

    On Jul 1, 2005, at 3:30 PM, Mike Kienenberger wrote:

    > Andrus Adamchik <andru..bjectstyle.org> wrote:
    >
    >> Also it just occurred to me that DataContext is the only place where
    >> DataObject instantiation happens. So how about creating a testing
    >> subclass of DataContext that override all methods that internally
    >> call private static method "newDataObject".
    >>
    >
    > Yeah, that'd be ideal, but we don't really provide a way to specify a
    > DataContextFactory yet, do we?

    No, and I am kind of holding off this with all the ObjectContext
    refactoring, however this shouldn't prevent anyone from using their
    own subclasses, especially for unit testing.

    Andrus



    This archive was generated by hypermail 2.0.0 : Fri Jul 01 2005 - 15:32:46 EDT