public static bool Existed(this IQueryable <AspNetUserRoles> query, AspNetUserRolesPK key)
 {
     return(query.Any(
                e => e.UserId == key.UserId && e.RoleId == key.RoleId));
 }
 public static AspNetUserRoles Id(this IEnumerable <AspNetUserRoles> query, AspNetUserRolesPK key)
 {
     return(query.FirstOrDefault(
                e => e.UserId == key.UserId && e.RoleId == key.RoleId));
 }