Hide this comment

If this is just an in-memory query on IEnumerables, then something like

seq {
for m in _context.Messages do
let ml = m.MessageLocalized.FirstOrDefault(fun l -> l.LanguageCode = language)
yield new Models.Message(Id=m.Id, Language=language, Content=ml.Content, Title=ml.Title)
}

should do it. If this needs LINQ, see

[link:blogs.msdn.com]

By on 12/6/2009 10:28 AM ()Reply
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper

Logging in...