每个表类需要将对数据库连接的引用存储在它的_ connection成员中。
Each of your table classes needs to store a reference to a database connection in its _connection member.
定义表的类还有一组定义表字段的成员。
A class that defines a table also has a set of members that define the table's fields.
有一个为每个类的虚表,其中包含每个成员的功能的实现的指针列表。
There's a virtual table for each class, which contains a list of Pointers to the implementation of each member function.
对于实体类,必须至少有一个成员具有此特性,并应映射到相应表或视图中的主键或唯一键。
For an entity class, at least one member must have this attribute and should be mapped to the primary key or a unique key in the corresponding table or view.
理解并掌握当一个类的对象作为另一个类的数据成员时,利用初始化表调用构造函数的方法、构造函数的执行顺序。
Understand and grasp the object as a class to another class as data members, using initialization table call the constructor method, constructor execution order.
理解并掌握当一个类的对象作为另一个类的数据成员时,利用初始化表调用构造函数的方法、构造函数的执行顺序。
Understand and grasp the object as a class to another class as data members, using initialization table call the constructor method, constructor execution order.
应用推荐