Only parameterless constructors and initializers are supported in LINQ to Entities

Posted by: Code Climber, on 25 Aug 2010 | View original | Bookmarked: 0 time(s)

Back from the holiday an nice surprise was awaiting for me: Ive to finalize (as in make it work) an application that someone that left the company developed more than one year ago. Among the other problems one real surprised me: the project is built with .NET 3.5 and uses Entity Framework v1 and in some the queries failed with the following strange error: Only parameterless constructors and initializers are supported in LINQ to Entities. Just to be clear, it was a runtime error, not a build...

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: XLinq | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1670 | Hits: 44

Similar Posts

  • A few things you can't do with EF queries which you won't find out until runtime more
  • Implementing SqlBulkCopy in Linq to Sql more
  • Speed Development Time by 50% more
  • Linq Data Services and the Business Logic Layer more
  • LINQ in Action, the book is available as an early access edition 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