Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning record versus fields only
Message
From
09/04/2012 10:45:20
 
 
To
09/04/2012 10:18:42
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01540661
Message ID:
01540667
Views:
51
If I declare the object like this:
Public oClient As IQueryable(Of ClientAPI.ClientService.Client) = Nothing
                oClient = (From c
                 In oGeneric.GetClients()
                 Where c.Id = nClientID
                 Select c.FirstName,cLastName).FirstOrDefault()
I will not get the error anymore but I will have a warning saying that at run time, I might get some errors. So, the entire query line is underlined in green and this is what is left to resolve.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform