Hmmm.. I guess I wasn't clear enough earlier. Sorry for any confusion I caused.
There are two things that happen when a new record is added:
1. The user presses the Add button. The following then occurs:
- The UI requests a new record from the biz object. (this is a single record).
- The biz object requests a blank record from the data object.
- The data object returns an empty record to the biz object.
- The biz object sets any default values
- The biz object returns the empty record to the UI
2. After entering the new data, the user presses the Save button
- The UI sends the data to the biz object
- The biz object validates the data.
- If not valid, go back to the UI
- If valid, the biz object sends the data to the save method of the data object
- The data object inserts the data into the database.
>Oh, just one more question (sorry to be a pain).
>
>If say, the client wants to create a new USER, the client calls the AddUser() method in the BO, then the BO calls the AddNew() method in the data-object, but, what form should the initial information passed around be in? I know ADO and XML are the forms, but what about identifying which values go in which fields?
>
>Should, perhaps, the client send a single-record recordset, or single-record XML string?
>
>Thanks
>Kev
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer