Deep loading data - MVC / Entity Framework / Repository Pattern
问题 I am implementing an ASP.NET MVC 5 web app using ASP.NET Identity 2 and Troy Goode's PagedList. I need to display UserRole data in the following format in a JqGrid: User Name | Role Name This is my UserRole class: public class UserRole : Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<int> { [ForeignKey("UserId")] public virtual User User { get; set; } [ForeignKey("RoleId")] public virtual Role Role { get; set; } } This is my repository method public virtual IQueryable<UserRole>