Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generated Business Rules for Numeric Columns
Message
From
10/03/2009 15:31:50
 
 
To
09/03/2009 08:55:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01383003
Message ID:
01386973
Views:
42
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform