Can ORM ODB for C generate code from the database
•
Java
I am very new to this library, and it is usually orm I know that tools like entityframework can generate code from databases Can ODB for C do this?
Solution
I don't think so. Check the main page of the project. There is an example of how to use ODB It seems that you only need to add some pragma here and there:
#pragma db object class person { ... private: friend class odb::access; person () {} #pragma db id string email_; string name_; unsigned short age_; };
But you do this on existing code, so no, it doesn't generate anything
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码