Class EntityType

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(config: MetadataStore): EntityType

Parameters

Returns

EntityType

constructor(config: EntityTypeOptions): EntityType

Parameters

Returns

EntityType

Properties

public autoGeneratedKeyType: AutoGeneratedKeyType

public baseEntityType: EntityType

public complexProperties: DataProperty[]

public concurrencyProperties: DataProperty[]

public dataProperties: DataProperty[]

public defaultResourceName: string

public foreignKeyProperties: DataProperty[]

public isAbstract: boolean

public keyProperties: DataProperty[]

public metadataStore: MetadataStore

public name: string

public namespace: string

public navigationProperties: NavigationProperty[]

public shortName: string

public unmappedProperties: DataProperty[]

public validators: Validator[]

Methods

public addProperty(property: IProperty)

Parameters

public addValidator(validator: Validator, property?: IProperty)

Parameters

public createEntity(initialValues?: Object): Entity

Parameters

  • initialValues?: Object optional

Returns

Entity

public getCtor(): Function

Returns

Function

public getDataProperty(propertyName: string): DataProperty

Parameters

  • propertyName: string

Returns

DataProperty

public getNavigationProperty(propertyName: string): NavigationProperty

Parameters

  • propertyName: string

Returns

NavigationProperty

public getProperties(): IProperty[]

Returns

IProperty[]

public getProperty(propertyPath: string, throwIfNotFound?: boolean): IProperty

Parameters

  • propertyPath: string
  • throwIfNotFound?: boolean optional

Returns

IProperty

public getPropertyNames(): Array<string>

Returns

Array<string>

public getSelfAndSubtypes(): EntityType[]

Returns

EntityType[]

public isSubtypeOf(entityType: EntityType): boolean

Parameters

Returns

boolean

public setProperties(config: EntityTypeProperties)

Parameters

public toString(): string

Returns

string