比如,有一个名为customer表,它可以从名为person类继承。
For example, you might have a table called Customer that inherits from a class called Person.
编写一个单独的程序来创建表,或者继承时在类中添加必需的功能。
Either write a separate program to create the tables, or add the necessary functionality in your class with inheritance.
对setup的专门调用将连接到数据库,为每个表设置一个类,然后让那些类去继承Maypole: Model: CDBI。
That single call to setup will connect to the database, set up a single class for each table, and cause those classes to inherit from Maypole: : Model: : CDBI.
应用推荐