A few things you can't do with EF queries which you won't find out until runtime

Posted by: Julia Lerman Blog - Dont Be Iffy..., on 15 Aug 2008 | View original | Bookmarked: 0 time(s)

Naturally, these are on my mind because my hand still stings from getting slapped by the runtime when I tried to do this. LINQ to Entities does not support projecting into known types. If you have a type or struct defined such as: PublicStructure KeyListItem Public ID AsIntegerPublic Name AsStringEnd Structure and are doing a query that will project out an ID and a Name, this is the natural way to write the query, given some experience with LINQ to [anything (including LINQ to SQL) but Entities]. Dim...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Data | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 691 | Hits: 18

Similar Posts

  • Oredev Wrap-Up more
  • Adding users to a TFS project when youre not on the domain more
  • N Tier Design Lessons Learned Part 1 more
  • Why not Classic (Legacy) ASP? more
  • My History of Visual Studio (Part 2) more
  • The myth that TDD or test-first slows you down is true more
  • DotNetNuke 5.1.4 Released more
  • Serialising Microsoft StreamInsight QueryTemplates more
  • Dovetail is Hiring a Junior-to-Mid-level .NET Developer more
  • The Downside of Transparency more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD