NeedsToLoad public property

2 posts, 0 answers
  1. Wiktor
    Wiktor avatar
    11 posts
    Member since:
    Sep 2010

    Posted 15 Jan 2011 Link to this post

    Would it be possible to add a property to tell the DomainDataSource (or to be more exact, the QueryableDomainServiceCollectionView) to not load the data from the server? I need this for scenarios when my application is sure that all the entities are already loaded in the domain context. For example, when TotalEmployeeCount < 100 all entities are loaded all at once, and the application should not query the server again.

    I tried to inherit from QueryableDomainServiceCollectionView and from QueryableCollectionView, but it is not possible to do so due to a few "internal" virtual methods.
  2. Wiktor
    Wiktor avatar
    11 posts
    Member since:
    Sep 2010

    Posted 16 Jan 2011 Link to this post

    Never mind. I swap QueryableDomainServiceCollectionView with PagedCollectionView in code behind to achieve the result I want.
  3. DevCraft banner
Back to Top