Breeze / breeze-client

Breeze for JavaScript clients
MIT License
38 stars 16 forks source link

Custom property on Entity Type #55

Open lvasiliou opened 3 years ago

lvasiliou commented 3 years ago

Hi could you please allow us to enrich entities with custom metadata? I believe version 1.0 allowed a custom object on metadata.

steveschmitt commented 3 years ago

Please give an example of what you are trying to do.

lvasiliou commented 3 years ago

hi sorry for being slow to respond. In my scenario i want to have a friendly title name for the entity to display to end users. For example , i have an entity called "RunningRepair", I would like to display "Running Repair" to the end user. My thinking is, if we can pass it as entityType.custom.Title by enriching with metadata on the server

steveschmitt commented 3 years ago

We already have a Custom property on metadata in the Breeze .NET server code. But it is on the entity property, not on the entity itself. It populates the custom property of a DataProperty or NavigationProperty in breeze-client.

There is a custom property on the Entity level in breeze-client, but not on the server.