Skip to content

Do you have an example to show how to self-reference the model #50

Description

@hanyoujia

`
@Edm.Annotate({
term: "UI.DisplayName",
string: "Products"
})

export class Product{
@Edm.Key
@Edm.Computed
@edm.String
@Edm.Convert(toObjectID)
@Edm.Annotate({
term: "UI.DisplayName",
string: "Product identifier"
}, {
term: "UI.ControlHint",
string: "ReadOnly"
})
_id:ObjectID
@Edm.ForeignKey("Product")
@Edm.EntityType(Edm.ForwardRef(() => Product))
@Edm.Partner("Product")
Product:Product
UnitPrice:number
}

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions