Function dynamicObject

  • Creates a dynamic object wrapper. This interface is applicable to the scenario where the object name is not determined during compilation and needs to be specified during runtime.

    Note: You do not need to useObject decoration. When an app is packaged, the metadata definition of the object is not packaged.

    Parameters

    • name: string

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

    Returns Orm

    Object wrapper

    Example


    import * as db from 'db';

    class Demo {
    run(): void {
    let s = db.dynamicObject('Student__CST');
    }
    }