Class EntityAspect

Index

Properties

Methods

Properties

public entity: Entity

public entityManager: EntityManager

public entityState: EntityStateSymbol

public hasValidationErrors: boolean

public isBeingSaved: boolean

public originalValues: Object

public propertyChanged: PropertyChangedEvent

public validationErrorsChanged: ValidationErrorsChangedEvent

Methods

public acceptChanges()

public addValidationError(validationError: ValidationError)

Parameters

public clearValidationErrors()

public getKey(forceRefresh?: boolean): EntityKey

Parameters

  • forceRefresh?: boolean optional

Returns

EntityKey

public getValidationErrors(): ValidationError[]

Returns

ValidationError[]

public getValidationErrors(property: string): ValidationError[]

Parameters

  • property: string

Returns

ValidationError[]

public getValidationErrors(property: IProperty): ValidationError[]

Parameters

Returns

ValidationError[]

public loadNavigationProperty(navigationProperty: string, callback?: Function, errorCallback?: Function): Promise

Parameters

  • navigationProperty: string
  • callback?: Function optional
  • errorCallback?: Function optional

Returns

Promise

public loadNavigationProperty(navigationProperty: NavigationProperty, callback?: Function, errorCallback?: Function): Promise

Parameters

  • navigationProperty: NavigationProperty
  • callback?: Function optional
  • errorCallback?: Function optional

Returns

Promise

public rejectChanges()

public removeValidationError(validator: Validator)

Parameters

public removeValidationError(validator: Validator, property: DataProperty)

Parameters

public removeValidationError(validator: Validator, property: NavigationProperty)

Parameters

public removeValidationError(validationError: ValidationError)

Parameters

public setDeleted()

public setDetached()

public setModified()

public setUnchanged()

public validateEntity(): boolean

Returns

boolean

public validateProperty(property: string, context?: any): boolean

Parameters

  • property: string
  • context?: any optional

Returns

boolean

public validateProperty(property: DataProperty, context?: any): boolean

Parameters

Returns

boolean

public validateProperty(property: NavigationProperty, context?: any): boolean

Parameters

Returns

boolean