Humar
November 4th, 2008, 03:58 PM
OK,
I have my database made, and also my stored procedures in SQL 2008. Now, when I use to design programs I use to write a Data Provider Interface, and then create a Data Provider (MSSQLProvider) which would handle the communication to the database. I then represented all of the tables in the database as objects in the source code, as they normally were. For example an Employee. So I would have an EmployeeManager which called the Provider.
Its a lot of work and takes a really long time to do this all correctly. I would like to put out a solution fast, and am wondering if there is an easier way to do this now, with C# 2008 EE. Is there any way I can do this without writting all these additional classes and interface, and still have the correct OOP design?
Or am I stuck spending hours doing it the old way?
I have my database made, and also my stored procedures in SQL 2008. Now, when I use to design programs I use to write a Data Provider Interface, and then create a Data Provider (MSSQLProvider) which would handle the communication to the database. I then represented all of the tables in the database as objects in the source code, as they normally were. For example an Employee. So I would have an EmployeeManager which called the Provider.
Its a lot of work and takes a really long time to do this all correctly. I would like to put out a solution fast, and am wondering if there is an easier way to do this now, with C# 2008 EE. Is there any way I can do this without writting all these additional classes and interface, and still have the correct OOP design?
Or am I stuck spending hours doing it the old way?