When an entity has more than one 0..1:n relationships to another entity, how to define them using Fluent API?
问题 I'm working on an Azure Mobile Service and in my model I have an entity Message , which is related to itself following this statement: A Message may have a parent Message , a Message may be the parent to many Messages . My class got defined as follows: public partial class Message { public Message() { this.Messages = new HashSet<Message>(); } public int Id { get; set; } public int CreatedById { get; set; } public int RecipientId { get; set; } public int ParentId { get; set; } public string