locked
Error When trying to access the Sharepoint List data using Entity Class RRS feed

  • Question

  • I am new to LINQ

    I am using the Code  in VB.net under the VisualWebPart project

     Dim myEntitiesDataContext As New EntityclassDataContext("http://SiteName/NorthAmerica/DBS/")

      Dim listItem  = From items In myEntitiesDataContext.Aitems Select items

    I am getting the below  error

    Expression of type 'Object' is not queryable. Make sure you are not missing an assembly reference and/or namespace import for the LINQ provider. 

    Please suggest the solution


    Regards, Shivaji

    Thursday, May 10, 2012 11:22 AM

Answers

  • Did you generate the Linq-to-Sharepoint Datacontext class?

    more info can be found here: http://ranaictiu-technicalblog.blogspot.com.au/2010/05/linq-to-sharepoint.html


    EmpowerIT (Australia) for all your CRM/SharePoint needs. http://mscrmblog.net
    Microsoft Certified Business Management Solutions Specialist
    Microsoft Certified CRM Developer

    Monday, May 14, 2012 1:16 AM