You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
public class Area
{
[BsonId]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public ObjectId Id { get; private set; }
public string Name { get; set; }
public string Code { get; set; }
public virtual Area Parent { get; set; }
public virtual ICollection Areas { get; set; }
}
my class is area ,has child ICollection Areas,which is self refrence,
save can success,but can not read,use include still not work
The text was updated successfully, but these errors were encountered:
I am currently working on this issue. It appears to be a problem with ForeignKey.IsSelfPrimaryReferencingKey() returning true, causing certain checks that try to map between ForeignKey.PrincipalToDependent and ForeignKey.DependentToPrincipal to incorrectly switch contexts. There seems to be a related piece of EF Core that I have yet to override that will fix it completely.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
public class Area
{
[BsonId]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public ObjectId Id { get; private set; }
public string Name { get; set; }
public string Code { get; set; }
public virtual Area Parent { get; set; }
public virtual ICollection Areas { get; set; }
}
my class is area ,has child ICollection Areas,which is self refrence,
save can success,but can not read,use include still not work
The text was updated successfully, but these errors were encountered: