Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to declare the variable correctly?
Message
 
 
À
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:
01571234
Vues:
42
>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?

I can change the controller action but I am a bit worried if I also need to change my routes (I use default). I haven't tried it yet, so I am going to try it and see if problems arise.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform