Why do you need to use those entities? Homework?
Anyway, I would rather use some framework to map the stored procedure. In the article linked below you will find an example using Entity Framework. This way you will get a lot of the code for free.
Stored Procedures in the Entity Framework
No comments:
Post a Comment