Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generated Business Rules for Numeric Columns
Message
De
10/03/2009 15:31:50
 
 
À
09/03/2009 08:55:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01383003
Message ID:
01386973
Vues:
41
Tim,

Kevin is taking this discussion up offline, but I wanted to answer your last question. Yes, I did try to manually change the data types in the entities to nullable, but that is a lot of work when you have many tables and then you lose all ability to automatically regenerate the business layer. I found a better approach to test my theory was to change all the numeric data types in my database to be nullable and then regenerate the business layer with the proper "Required" and "Allow Empty Value" settings for each column and then the BLG generates all my business rule properly so I don't have to modify any of them or the entities. I had to reset my database columns back to not nullable where appropriate. I know it was hokey, but it worked and I didn't have to manually modify any of the business rules or entities. When you have hundreds of tables and more than a thousand numeric data fields, it's nice to not have to modify all those generated business rules and entities.

Al
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform