Views: 4560
Number of votes: 2
Average rating:

Dynamic Data Store : The saga of the missing methods

If I received 1 Swedish Crown for every time someone asked or complained about why the DDS does not implement FirstOrDefault() in its Linq stack (along with First(), Last() and LastOrDefault()) then I would have at least 40 Swedish Crowns and would retire to the Bahamas (or Västerås)

The truth is that these methods return a single item as opposed to an IEnumerable and therefore require a whole new implementation path. In an ideal world this would have been done for CMS 6 but unfortunately wasn’t. Until it is done there is a very easy workaround.

See Jonas Bergqvist’s workaround here which uses Take and Reverse to achieve the same goals.

    (By Guest , 21 September 2010 10:33, Permanent link)

    Thanks for mentioning Västerås!!! In Västerås the weather is always hot and humid and it never rains. The girls are beautiful and the beer is always for free.

    ... and by the way - interesting posting!
    / Dan Jansson

  Please login to post a comment