• Create an object wrapper

    Note: UseObject needs to be used for decoration. When an app is packaged, the metadata definition of the object is packaged.

    Parameters

    • name: string

      Object name. You can specify a custom object or a standard object.

    • Optional dynamic: boolean

      The identifier is deprecated. Use the db.dynamicObject interface.

    Returns Orm

    Object wrapper

    Example


    import * as db from 'db';

    @useObject(['Student__CST'])
    class Demo {
    run(): void {
    let s = db.object('Student__CST');
    }
    }