Re: More weirdness with dataContext invalidateObjects()

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sat Sep 11 2004 - 17:04:18 EDT

  • Next message: Lindsay Steele: "Query on a Single Primary Key`"

    Mike,

    To have a guaranteed "clean" DataContext with no underlying cache, I
    suggest creating a new instance for each testXYZ method (as you really
    want your tests independent from each other). Also if you create it
    like this, there will be no shared cache involved (for queries or
    objects):

    DataDomain domain;
    DataContext context = domain.createDataContext(false);

    Andrus



    This archive was generated by hypermail 2.0.0 : Sat Sep 11 2004 - 17:04:22 EDT