Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exact match in where clause
Message
De
10/04/2012 16:12:36
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
10/04/2012 15:37:17
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:
01540884
Vues:
39
>Using Linq, if I have a where clause with an equal sign about a character 10 field, do I have to specify something specific to assure an exact match or this is considered as is in Linq?
>
>This is an example:
>
>
>                oClient = (From c
>                 In oClient.ClientService.Clients()
>                 Where c.Id = cClientID).FirstOrDefault()
>
>
>Because, if I have a Id field having values 123 and 1234, again for a Char(10) field, how can I be sure that searching for 123 will find the record having 123 for the ID and not 1234?


AFAIK, it is an exact match in c#. 123 != 1234. Is VB case specific? Are there ANSI settings like VFP?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform