odata-v4-server icon indicating copy to clipboard operation
odata-v4-server copied to clipboard

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

Open hanyoujia opened this issue 5 years ago • 0 comments

` @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 }

`

hanyoujia avatar Jan 22 '20 01:01 hanyoujia