Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:811286
More Search Options
RSS Available
Matching Posts
Re: LINQ Issue: no supported translation to SQL
Well, changing [quote user="chris.wall"] <code> ///This is the method in my Linq to SQL Repository public IQueryable GetNewsPosts() { return from n in _context.NewsPosts select new Business.NewsPost(n); } </code> [/quote] To be <code> return from n in _context.NewsPosts select new Business.NewsPost { ID = n.ID, Title = n.Title, Body = n.Body }; </code> It all works as expected now, I'm just not sure why it wouldn't work by passing "n" into the business
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
chris.wall
on 7/4/2008
LINQ Issue: no supported translation to SQL
I apologize in advance if this is the wrong forum to post this in, didn't see any forum's description mentioning LINQ. I am getting the following exception: The member '[MyBusinessClass].ID' has no supported translation to SQL. For starters, this isn't even a Linq to Sql class. Am I wrong to assume that I can plug an object into an IQueryable collection and query it as I would a database? Edit: When I try the following line of code everything works fine this._repository.GetNewsPosts
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
chris.wall
on 7/3/2008
Page 1 of 1 (2 items)
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Channel 9:
Channel 9 Live at PDC09: Doug McCuistion, NASA
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online