The cache is static, so go ahead, create and destroy DataContexts without penalty.And creating a new DataContext for each service call seems a good pratices, since it will flush the entity cache, and you will keep a consistent and clean state.
Pascal. jabber/gtalk: [email protected] msn: [email protected] On Fri, Mar 20, 2009 at 12:16, Giacomo Tesio <[email protected]> wrote: > Hello everybody! > I was wondering at which layer the query evaluated are cached. > > That becouse we plan to use the DbLinq DataContext in a web environment > recreating it at each request. > Actually that's the usage proposed by the linq to sql documentation. > But if queries are cached in the DataContext, we could not pay the time of > revaluating the query tree at each request. > > > What am I missing? > > > Giacomo > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dblinq?hl=en -~----------~----~----~----~------~----~------~--~---
