Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coalescence blues
Message
 
À
15/03/2017 09:13:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 5.0
OS:
Windows 8.1
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01649038
Message ID:
01649089
Vues:
33
>
>This way you do not have to think of if the underlying field r.Weight is nullable or not. Otherwise it would not only depend on underlying field is nullable or not but if there are matching records to sum as well.
>
>PS: I removed the parentheses just because they were not needed.

So you're saying I should treat the details table as well for empty queries and I see your point. I'm not sure I'm breaking some best practices rule here, but I have reasons to believe that there will always be entries in the details table and if not, the code is welcome to break. (ducks).

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform