I Have the following tables
Users
-> UserId
-> Name
Roles
-> RoleId
-> Name
UserRoles
-> UserId
-> RoleId
and the following classes
public class Role{
public int RoleId{get;set;}
public int Name{get;set;}
}
public class User{
public int UserId{get;set;}
public int Name{get;set;}
public ICollection<Role> Roles{get;set;}
}
How to map this using EntityFramework ModelBinder.
1 Answer