Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exact match in where clause
Message
De
10/04/2012 19:32:49
 
 
À
10/04/2012 18:21:59
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:
01540943
Vues:
23
>As far as I know, the equals sign should give you an exact match in both VB and Sql Server. Exactly how it handles the equals sign in your where is going to depend on if oClient.ClientService.Clients() is IQueryable or IEnumerable. If its IQueryable, then the where clause should get translated into the Sql Server query equivalent and executed on the server. If its IEnumerable, then the list has already been retrieved and the filtering is done in memory using VB. The article at http://msdn.microsoft.com/en-us/vstudio/ff963710.aspx has a more in-depth look at the differences between the two.

Thank you very much, this provides a very good answer.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform