Answer the question
In order to leave comments, you need to log in
Is it possible to implement a mechanism of this kind for working with a database?
template<typename _Tx> class TypedQuery...
For example, I have a class TypedQuery<>
that accesses the database.
This class contains mechanisms for selecting a table element, deleting, updating, substituting parameters, etc.
I also have a class in which this data should be placed, for example TPerson.
Announcement: TypedQuery<TPerson>
Accordingly, the TPerson.
request and the corresponding fields should contain.
Work with data like this:
TypedQuery<TPerson> Element;
if(Element.contains(<ИмяПоля>)) Element.setParam(<ИмяПоля>,<Параметр>);
Загрузка
Element.get(<ID>);
Обращение к полученным данным:
Element.Person.ИмяПоля
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question