Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exact match in where clause
Message
De
10/04/2012 17:48:16
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
10/04/2012 17:46:27
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:
01540879
Message ID:
01540920
Vues:
28
>>case is alwarys sensitive in c# unless you use toUpper and ToLower....
>> We also have StartsWith, Contains, and any extension methods we wish to write.....all of which can be used in linq. I have a whole library of string extension methods that do all kinds of things from removing character sequences, to find and delete, to reverse, etc. all of which can be used in linq.
>
>So, in VB.NET, if I wish the where clause to go exact with an equal sign to a Char(10) field, will the equal sign be suffisant? Or, do I need to adapt the where clause syntax for something else?

I don't use VB.net ... I don't know if comparisons are ansi compliant or not... but it would be easy to create a list of strings... and use linq to query the list to make sure that the where clause you use are returning unique results..
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform