Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making a Linq object available as is
Message
De
22/02/2012 16:16:03
 
 
À
22/02/2012 11:50:50
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01536107
Message ID:
01536148
Vues:
32
After verification, what I tried did not work. Basically, I can do this:
    Public oClient As ClientAPI.Client = Nothing
    Public oUser As Object = Nothing
This will make oUser available from the object and will not cause any error. However, loLinq.oUser will not be intellisense.

What I tried earlier was:
    Public oClient As ClientAPI.Client = Nothing
    Public oUser=(From u In oClient.GetUsers()...
But, after having made more tests, I found out that this is giving an error about an object reference not found.

My goal is to declare a public Linq object in the Linq class to be available and be ready for intellisense. In the declaration, in order for that to work, I need to define oUser with a Linq statement that will not be executed but will read its signature from its parent (query). Is this possible?
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform