Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Unable to determine the relationship represented by navigation property

$
0
0

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; }

}


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>