On Sat, 2009-11-21 at 01:26 -0800, Dip's wrote:
> but i want to be assure that DBLINQ 0.19 can internally manage Data
> caching or Developer(s) have to implement these Data cahing.

The DataContext does maintain references to all entities created (in
order to support change tracking). This does constitute a cache (of
sorts), and we do ensure that subsequent queries return the same
objects.  For example, see WriteTest.E1_LiveObjectsAreUnique() [0]:

            //grab an object twice, make sure we get the same object each time
            Northwind db = CreateDB();
            var q = from p in db.Products select p;
            Product product1 = q.First();
            Product product2 = q.First();
            Assert.AreSame(product1, product2); 

> this example shows you there is one datacontext "test" here, i have
> created object of this "test" for get all product data without Data
> Cahing manage from my side, so the question is  will i get this
> "AllProduct" data 2nd time from Cache or it will again(2nd time) make
> DB call to retrive "AllProduct".

That would appear to be the case (see above test), though there may be
some corner case I'm currently unaware of.

> another issue is DBLINQ 0.19 QueryCahe is different then the Microsoft
> Precomplile query.

This is a known issue, and won't be resolved until 0.20 (at least).

- Jon

[0]
http://dblinq2007.googlecode.com/svn/trunk/src/DbLinq/Test/Providers/WriteTest.cs


--

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=.


Reply via email to