Group: Forum Members
Posts: 386,
Visits: 2.1K
|
Hi Gerard,
Take a look at: http://forum.strataframe.net/Topic10223-6-1.aspx
This has worked very well for us for quite a while now.
Our policy on nulls is not to allow them unless they are really necessary, e.g. the dispatch date on a product can be null if it hasn't been dispatched yet therefore nulls are permitted.
In the BO mapper we set every column's Null Type to "Use Nullable Generic" (in the wizard) then go through and change all string (reference type) fields to: "Return Alternate on Nulls" and set the alternate value to String.Empty. And that's it - everything just works from then on and we can exercise control at the database level.
Cheers, Peter
|