这是我的模型
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; }
这是我的错误
无法确定相关操作的有效排序。由于外键约束、模型要求或存储生成的值,可能存在依赖关系。