Unable to determine a valid ordering for dependent operations?
问题 I have this model: public class ContentType { public int ContentTypeId{get;set;} public string Name{get;set;} public Lang Lang{get;set;} public bool IsPublished{get;set;} public int? ParentId { get; set; } public int UserId { get; set; } public virtual User User { get; set; } public virtual ContentType Parent { get; set; } public virtual List<ContentType> Children { get; set; } } It has a one to many relation to itself. And in Context I have this: protected override void OnModelCreating