I am refactoring an older application, it was using dynamic in-line SQL, pulling data from a large Oracle database. I created a stored procedure (PL/SQL) which works fine. Since it is only one row (datarow) I left it returning a datarow. This class resides in the DAL.
As I am refactoring things I thought I would isolate the database (in the DAL) from the business layer (use linQ). My first thought was create an object to contain the returned datarow.
One of my coworkers recommended Anonymous types, which I am not familiar with. In the reading I've done so far it looks simple enough. I just don't see the value in it if I have still have to put the fieldnames and field types using the anonymous types.
Am I missing something? Would there be more value to using Anonymous types if I was returning a dataset/datatable?