I have installed Breeze sharp package and i have created one sample windows application that has a model Customer.

I have created the EntityManager for our API service and try to fetch the metadata to create my entities,but its throwing following error

There are no KeyProperties yet defined on EntityType: 'Customer:#BSharp.Models'. Please insure that the metadata for this type is complete either by calling FetchMetadata or by explicitly updating the KeyProperties before creating an EntityKey for this type

Can you help me solving this problem?

1

There are 1 best solutions below

2
On

It's complaining that none of the properties in your Customer entity are marked as the key. Can you post the definition of your Customer entity? What are you using as your backend? Entity Framework?