November Happy Hour will be moved to Thursday December 5th.

smithsson68@gmail.com
Jun 9, 2010
  6334
(1 votes)

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.

Jun 09, 2010

Comments

Sep 21, 2010 10:33 AM

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 comment.
Latest blogs
Optimizely SaaS CMS + Coveo Search Page

Short on time but need a listing feature with filters, pagination, and sorting? Create a fully functional Coveo-powered search page driven by data...

Damian Smutek | Nov 21, 2024 | Syndicated blog

Optimizely SaaS CMS DAM Picker (Interim)

Simplify your Optimizely SaaS CMS workflow with the Interim DAM Picker Chrome extension. Seamlessly integrate your DAM system, streamlining asset...

Andy Blyth | Nov 21, 2024 | Syndicated blog

Optimizely CMS Roadmap

Explore Optimizely CMS's latest roadmap, packed with developer-focused updates. From SaaS speed to Visual Builder enhancements, developer tooling...

Andy Blyth | Nov 21, 2024 | Syndicated blog

Set Default Culture in Optimizely CMS 12

Take control over culture-specific operations like date and time formatting.

Tomas Hensrud Gulla | Nov 15, 2024 | Syndicated blog