| | |
Suitable Design Pattern for C++ Daya Access Layer
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2009
Posts: 1
Reputation:
Solved Threads: 0
Please advice me what is the most suitable Design Pattern for C++ to create Data Access Layer. Objective is to have clear separate layer for Presentation Layer, Business Logic, and Data Access Layer.
Sub Question:
1. In C#, there was Dataset class to get data tabular records from query. What is suppose for C++? I did try to use vector<string*> as return function/method but I am not sure is it the best solution.
Advance thanks for shared knowledge from you all.
TQ
Sub Question:
1. In C#, there was Dataset class to get data tabular records from query. What is suppose for C++? I did try to use vector<string*> as return function/method but I am not sure is it the best solution.
Advance thanks for shared knowledge from you all.
TQ
Use either ODBC or ADO in c++ programs. Neither are for the faint of heart and require a firm grasp of c or c++ fundamentals. Microsoft's MFC class also has a database class.
Once you have the query, I'd put the query contents in a
Once you have the query, I'd put the query contents in a
vector< vector<string>> object, assuming all the columns are strings. If the columns are a mixture of datatypes, which is a common thing, then you might want to create a union structure and put them in a vector of those structures. Last edited by Ancient Dragon; Jul 25th, 2009 at 6:52 am.
![]() |
Similar Threads
- Design Pattern - Proxy (Computer Science)
- A Problem & a Question for the "Composite" design pattern (C++)
- Design pattern for encode/decode modules (C++)
- how to design a suggestion form inside a layer (Graphics and Multimedia)
- Factory Design pattern implementation (C++)
- Creating data access layer in java (Java)
Other Threads in the C++ Forum
- Previous Thread: Check UL speed, how?
- Next Thread: saving and loading binary tree
Views: 268 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines linker list loop looping loops map math matrix memory newbie news number output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






