Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 03, 2012 01:28 AM by Decker Dong - MSFT
Member
218 Points
152 Posts
May 01, 2012 03:23 PM|LINK
Hi
I have a table valued function and i am trying to linq to sql with it
var fb = from f in db.fFirmBookings(id) select f;
I am getting the error
The type of the expression in the select clause is incorrect. Type inference failed in the call to 'Select'.
Thanks
All-Star
118619 Points
18779 Posts
May 03, 2012 01:28 AM|LINK
ArchieEric var fb = from f in db.fFirmBookings(id) select f;
Hello:)
For a LINQ statement,you cannot write (id) where you've put now……You should try to write something like this by referring its public property:
var fb = from f in db.fFirmBookings select f.Id;
ArchieEric
Member
218 Points
152 Posts
The type of the expression in the select clause is incorrect. Type inference failed in the call ...
May 01, 2012 03:23 PM|LINK
Hi
I have a table valued function and i am trying to linq to sql with it
I am getting the error
Thanks
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: The type of the expression in the select clause is incorrect. Type inference failed in the c...
May 03, 2012 01:28 AM|LINK
Hello:)
For a LINQ statement,you cannot write (id) where you've put now……You should try to write something like this by referring its public property: