Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting by group with null support
Message
De
20/09/2015 09:45:42
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Selecting by group with null support
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01624841
Message ID:
01624841
Vues:
52
I have this command to select only the groups from a datatable:
' Group
loResult = loDataTable.AsEnumerable().GroupBy(Function(r) r.Field(Of Integer)(lcPrimaryKey)).[Select](Function(g) g.First()).CopyToDataTable
I just found out that this will generate an error if one of the values is a null.

Is there a way I can add support in this command for such situation?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform