I thought the approach you had, returning an object with parameters to represent the employer. You can do both, in the function that returns the object, pass the datarow in the new constructor (or through a function) which is used to provide the values for the parameters, then return the object to the caller. However, I have a large enough app where this became a headache, so I stuck with the ADO.NET objects.
Hope this helps,
Brian Mains
|