ABP错误笔记
作者:互联网
System.InvalidOperationException:“Unable to determine the relationship represented by navigation property 'User.DeleterUser' of type 'User'. Either manually configure the relationship, or ignore this property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.”
原因:在EF层XXXMLCDZDbContext中OnModelCreating 下缺少对初始化的配置,加上base.OnModelCreating(modelBuilder); 就好了
![](https://www.icode9.com/i/l/?n=18&i=blog/1406833/201906/1406833-20190622112932168-2022308536.png)
标签:OnModelCreating,XXXMLCDZDbContext,错误,relationship,笔记,ABP,User,using,property 来源: https://www.cnblogs.com/bamboo-zhang/p/11068257.html