StrataFrame Forum

Why BusinessObject.Add Ignores default values?

http://forum.strataframe.net/Topic29524.aspx

By dgsoft - 2/8/2011

Hi,

In the database I setup default value for integer field -1
For businessObject default value for isDbNull also -1


When I made BO.add() the Public Shared Sub InitializeNewRow() set default values for new row and choose for Integer 0 in any case.

The question is why? and second question - what the logic 3 time write same in SetDefaultValues() event? Is there easy way to initialize correct column values using defaultvalues or using BOM isDBNull values?

Thanks

Denis