Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon 692 posts 1068 karma points
    Sep 30, 2016 @ 20:43
    Simon
    0

    Get All Products - Query

    Hi Guys,

    I have dilemma about the following:

    merchello.Query.Product.Search(0, int.MaxValue).Items
    

    From my knowledge, am I right that it does not execute until there is .ToList(), .ToArray(), etc ? Correct me if I am Wrong.

    And if it is just a query and not an execution, can I Filter the items and get access to the collections linked to check and comapre collection guids?

    Thank you in advance.

  • Tom Steer 161 posts 596 karma points
    Sep 30, 2016 @ 21:48
    Tom Steer
    0

    Hey Simon,

    As far as I am aware it doesn't implement iqueryable and uses examine as it's data source so once the search has happened any further filtering will just be done in memory.

    Thanks,

    Tom

  • Simon 692 posts 1068 karma points
    Oct 01, 2016 @ 05:53
    Simon
    0

    Hi Tom, thank you for your reply.

    Do you know how to then filter them to get those products only which has such collections related to?

    And is it practicle to use it and the skip fir pagination afterwards?

    Thank you in advance.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies