Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Tim,
I agree with everything you are saying. The problem is that I can't check for the empty value because I'm using the entity centric appraoch, which when using non-nullable database columns, the corresponding entity properties do not have nullable data types, which means they are automatically initialized to zero if the UI control is empty. The dataset carries the null (or empty string) from the UI but the entity ends up having a zero. This inconsistency is what makes it impossible to test for the null (or empty string) using the business rules in the entity centric approach.
The only work around I can think of is to have the entities always use nullable data types and use the automatically generated business rules to enforce the non-nullable rules.
I'm curious to see how this is going to work in the next release that uses the entity framework.
Al
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement