aboue query i want to change in LINQ
from U in objEntity.tbl_user_relation join R in objEntity.tbl_role on U.RoleId equals R.Role_Id where U.User_Id == 9 select new { RoleName = R.RoleName}).ToList().Select(x => new {RoleNames = string.Join(",", x.RoleName)});
i wrote the aboue query but not displaying group of RoleNames
please help me...

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 23, 2013, 5:44 AM EDT
Try like this,
var names = string.Join(",", (from U in objEntity.tbl_user_relation join R in objEntity.tbl_role on U.RoleId equals R.Role_Id where U.User_Id == 9 select R.RoleName).ToList());
manjula d131 reputationPosted Oct 23, 2013, 8:46 PM EDT