Possible bug in CslaDataProvider

Possible bug in CslaDataProvider

Old forum URL: forums.lhotka.net/forums/t/5887.aspx


ajj3085 posted on Wednesday, November 26, 2008

Hi,

I was trying to figure out what is causing this problem, and in doing so I compared how XmlDataSource and ObjectDataSource work with how CslaDataSource works.

The concern I have is the code in BeginQuery for CslaDataSource:
      if (this.IsRefreshDeferred)
        return;

      if (_firstRun)
      {
        _firstRun = false;
        if (!IsInitialLoadEnabled)
          return;
      }

In both cases of Deferred Refresh and Initial Loading, it looks like the DataSourceProvider base class handles these in combination with data binding.  So what is this code supposed to do?  I couldn't find any explanation in the eBook, and this causes a different behavior than the two MS providers.

ajj3085 replied on Wednesday, November 26, 2008

Just wanted to throw this out...

Removing the above code doesn't seem to cause any bad behaviors, and makes the CslaDataProvider act more like ObjectDataProvider.  Also, the XamDataGrid WILL show columns, where as previously it would not on the designer.. I suspect this is how the provider should be acting.

Andy

Copyright (c) Marimer LLC