If I have a POCO-Object (nothing to do with EF or any other Framework), and it looks like the following (from NoDb-Example):
public class TodoItem {
public int TodoItemId { get; set; }
public string Title { get; set; }
public bool IsDone { get; set; }
}
How does Breeze know, or how do I tell Breeze, that TodoItemId is the EntityKey? Do I have to mess with the "MetaData"-By-Hand (http://www.breezejs.com/documentation/metadata-hand-depth)? I currently don't really understand, how the EntityKey-Concept can be configured/influenced.
Is there some kind of .NET-Attribute I can use? I use .NET-Framework 4.5 and Web API for the server-side.