var query = Entities.admin
.Join(Entities.adminpermissions,
c => c.ID,
cm => cm.PID,
(c, cm) => new { PRead = cm.PRead, UserId = cm.UserID, ID = cm.ID }) // project result
.Where(x => x.UserId == userID); // select result
No comments:
Post a Comment
Comments