Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to declare the variable correctly?
Message
 
 
To
17/04/2013 11:35:31
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01553872
Message ID:
01571234
Views:
41
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform