Unable to determine the relationship represented by navigation property 'ApplicationUser.Groups' of type 'List<Groups>'. Either manually configure the relationship, or ignore this property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'
public class Groups
{
[Key]
public int GroupId { get; set; }
[Required]
public string GroupName { get; set; }
[Required]
public DateTime Creaded { get; set; }
public DateTime Updated { get; set; }
public int GroupOwnerId { get; set; }
[ForeignKey("Id")]
public virtual ApplicationUser ApplicationUser { get; set; }
public virtual ICollection<Comments> Comments { get; set; }
public virtual ICollection<ApplicationUser> ApplicationUsers { get; set; }
}
public class ApplicationUser : IdentityUser
{
public string ImageName { get; set; }
public virtual List<Tasks> Tasks { get; set; }
public virtual List<Groups> Groups { get; set; }
public virtual List<Groups> GroupsList { get; set; }
public virtual List<Documents> Documents { get; set; }
}