Reputation: 807
I am re-engineering a product which uses ADO communication for connecting to SQL.THe bussiness layer is in c++. The whole queries are written as SP's. I want the product to support SQL 2008 and may be Mysql(haven't finalized).
These are the changes i thought!
I want feedbacks/suggetions for this. Is this a good trasnition?
Upvotes: 2
Views: 168
Reputation: 47068
Based on personal preferences I would create LINQ2SQL or possibly Entity Framework layer to access the database. Both LINQ2SQL and Entity Framework can import definitions for and call stored procedures¹.
I would then gradually convert stored procedures to LINQ code.
¹) Within reasonable limits, SP:s with multiple return sets and selects that is not from a single table must be mapped manually, but it is still possible.
Upvotes: 3