Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generated Business Rules for Numeric Columns
Message
From
19/02/2009 22:27:57
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Generated Business Rules for Numeric Columns
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:
01383003
Views:
93
The Business Layer Generator creates a business rule for each non-nullable numeric data type and uses mmType.IsEmpty() to test if the field is equal to 0. If it is 0, then it considers it a broken rule.

About half of my numeric fields can have 0 as a legitimate value so the automatically generated business rule is a problem for me. I have been commenting out these business rules, but it's becoming a hassle to maintain when I recreate the business objects.

Is there a way to prevent these rules from automatically generating so I don't have to comment them out or is there a way for me to override them using the partial class? I don't believe the latter is possible, but may there is a way.

Thanks,

Al
Next
Reply
Map
View

Click here to load this message in the networking platform