Fill business object from database by calling stored procedurs?

Posted by grady on Stack Overflow See other posts from Stack Overflow or by grady
Published on 2010-06-10T08:47:36Z Indexed on 2010/06/10 8:53 UTC
Read the original article Hit count: 161

Hello, I have several stored procedures in my database, some of them have params, some have no params. I tried to fill a business object by calling the stored procedures, but failed so far. How could I do that dynamically? Later, I want to use this object as a datasource for a report...but thats the next step. The important facts are:

  • different stored procs return different amount of columns
  • stored procs can have params, but its not required

How could I achieve that?

Thanks :)

© Stack Overflow or respective owner

Related posts about .NET

Related posts about ASP.NET