The company I work with is developing a large application that is almost entirely based on stored procedures.
We use classic ASP and SQL Server, and the bulk of the business logic is contained within these stored procedures.
For example, (I know this is bad ...) one stored procedure can be used for different purposes (insert, update, delete, perform some calculations, ...). In most cases, a stored procedure is used for operations on linked tables, but this is not always the case.
We plan to migrate to ASP.NET (WebForms) in the near future.
I read a lot of posts that StackOverflow recommends moving business logic outside of the database. The fact is that I tried to convince people who make decisions in our company, and I can not do anything to change my mind .
Since I want to take advantage of object-oriented programming, I want to map tables to actual classes. So far, my solution has been to use ORM (Entity Framework 4 or nHibernate) to avoid manually matching objects (mainly to retrieve data) and use some level of data access to call existing stored procedures (to save).
I want your advice on this. Do you think this is a good solution? Any ideas?
Edit: Should I just go with the standard DataTable / DataRow approach?
Jason source
share