|
Group: StrataFrame Developers
Posts: 40,
Visits: 91
|
When we test on values within the business object, we generally use the .Item property, which evaluates the strong-typed properties of the subclass and returns the values. So, .Item("ATTLookUp") will call the Get of the ATTLookUp property. So, when testing default values, since most columns are .NET value types (not reference types), we have to test on the "default" value for a value type (because value types always have a value). We do test on DBNull.Value from the CurrentRow("ATTLookUp") to test required fields as well, but we also have to test on the default for value types, so 0 and False are considered to have not been set. Generally, you won't want to use the RequiredFields for a Boolean property, you'll want to test the CurrentRow("FieldName") Is DBNull.Value on your own.
|