Group: Awaiting Activation
Posts: 592,
Visits: 3.7K
|
As Greg pointed out the only issue is if you try to do an update, add or delete. The advantage of adding a dummy BO to the DDT is that all of the fields and property descriptors are generated for you. If you use scalar methods or add additional fields to your SELECT or stored procedures using a "real" BO, you have to add the custom properties and descriptors if you want to bind to them. However if you do an add, update, delete on a "real" BO, it will ignore the added fields. I've used both approaches. My only issue is that using the dummy BO results in "invalid" methods in the BO. At one time I was overriding the update, delete, and add methods to prevent any exception if they were called but I found it to be a lot of work. What I'd like to see is an additional BO class added to SF that was "read or lookup only" and had all of the add, delete, and update methods removed.
|