none
LINQ to Entities problem RRS feed

  • Question

  • Dear Professionals:

    I have the following statements:

    public List<string> AccessList;

    AccessList = db.Groups.Where(o => o.GroupId == (int)TempData["GroupId"]).Select(m => m.AccessLink).ToList<string>();

    Sunday, September 21, 2014 8:03 AM

All replies

  • Try this

    AccessList = db.Groups.Where(o => o.GroupId == (int)TempData["GroupId"]).Select(m => m.AccessLink.ToString()).ToList();


    jdweng

    Sunday, September 21, 2014 8:17 AM
  • What is the problem. Do you get any error?

     

    Noam B.


    Do not Forget to Vote as Answer/Helpful, please. It encourages us to help you...

    Sunday, September 21, 2014 10:07 AM