我有一个实体在父子关系中引用自己。我需要找出如何使用代码和流利的API来实现这一点。以下是我的实体课。 public class MenuItem
{
public int Id { get; set; }
public string LinkText { get; set; }
public string ControllerName { get; set; }
在构建迁移我收到以下错误: 无法确定按类型“位置”的导航属性“Location.NorthLocation”表示的关系。要么手动配置关系,要么忽略模型中的该属性。 的位置实体: public class Location
{
public Guid Id { get; set; }
public DateTime CreatedWhen { get; set; }
实体模型: public class DocumentType : CodeBase
{
[Required]
[MaxLength(100)]
public string Name { get; set; }
public TimeSpan? Productiontime { get; set; }
public bool IsDelive
我下面这个教程来实现与EF核心1.1我的友谊系统:http://www.codedodle.com/2014/12/social-network-friends-database.html Friendship.cs public class Friendship
{
public Guid ApplicationUserId { get; set; }
public App