Base class for all MemberJunction metadata info classes. Provides common functionality for copying initialization data and handling default values. All Info classes (EntityInfo, QueryInfo, etc.) extend this base class.

Hierarchy (view full)

Constructors

Properties

DisplayName: string = null
EntityField: EntityFieldInfo = null
ID: string = null

Primary Key

Name: string = null
hidden: boolean = null
orderIndex?: number = null
width?: number = null

Methods

  • Copies initialization data from a plain object to the class instance. Only copies properties that already exist on the class to prevent creating new fields. Special handling for DefaultValue fields to extract actual values from SQL Server syntax.

    Parameters

    • initData: any

      The initialization data object

    Returns void