This question is locked. New answers and comments are not allowed.
Hi,
I started playing with OA with the last 2009 build, but seeing the new features in Q1 2010 have attempted to set up a new project using Q1 build.
I added a .rlinq to my project, mapped the database (nice and simple, only a single table - Projects), and have attempted to use it to populate a RadGrid in an ASP page. Here's my code to databind the grid:
Everything compiles OK, but when running and attempting to populate the grid I get the following error:
Unable to cast object of type 'Telerik.OpenAccess.Query.ExtentQueryImpl'1[System.Collections.Generic.IList'1[JobTracker.Project]]' to type 'System.Collections.Generic.IList'1[JobTracker.Project]'.
Where have I gone wrong? :)
Thanks,
Neil.
I started playing with OA with the last 2009 build, but seeing the new features in Q1 2010 have attempted to set up a new project using Q1 build.
I added a .rlinq to my project, mapped the database (nice and simple, only a single table - Projects), and have attempted to use it to populate a RadGrid in an ASP page. Here's my code to databind the grid:
Using Context as JobTrackerEntityDiagrams = New JobTrackerEntityDiagrams |
Dim proj = From c In Context.Projects _ |
Select c |
grdProjectList.DataSource = proj |
grdProjectList.DataBind() |
End Using |
Everything compiles OK, but when running and attempting to populate the grid I get the following error:
Unable to cast object of type 'Telerik.OpenAccess.Query.ExtentQueryImpl'1[System.Collections.Generic.IList'1[JobTracker.Project]]' to type 'System.Collections.Generic.IList'1[JobTracker.Project]'.
Where have I gone wrong? :)
Thanks,
Neil.