这是我的模特儿
public string Content { get; set; } public Faq Reply { set; get; } public int? ReplyId { get; set; } public ICollection<Faq> Children { get; set; } [ForeignKey("WriterId")] public virtual UserProfile Writer { get; set; } public virtual int? WriterId { get; set; } public Status Status { get; set; } [ForeignKey("DepartmentId")] public virtual Department Department { get; set; } public virtual int? DepartmentId { get; set; }
这是我的错误
Unable to determine a valid ordering for dependent operations. Dependencies may exist due to foreign key constraints,model requirements,or store-generated values.
看起来你有一个循环依赖.你收到保存数据的错误?
原文链接:/javaschema/281921.html