Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to declare the variable correctly?
Message
De
17/04/2013 11:35:31
 
 
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01553872
Message ID:
01571226
Vues:
44
This message has been marked as a message which has helped to the initial question of the thread.
The where function just takes your entity as a parameter and you return a boolean result. If you want no results you just return false:
operators = operators.Where(o => false));
As for changing the type of the id, can't you just change the controller to accept string in place of int?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform