RIA Database Access
I have added an entity data model and a domain service class Within the RIA enabled business template but when I use the c# code to databind in the code behind file I get a blank datagrid returned.
There is no error message.
After a bit of working on it if i add a limitation to the IQueryable method in the domain service class to take(100) returning the first 100 rows it displays if
I drag and drop from the datasource into the grid but not if i use the code for databinding outlined in the book
DomainContext dc = new DomainContext();
EmployeeGrid.ItemSource = dc.Employees;
this method of databinding returns an empty datagrid.
Drag and drop from the datasource window does not.
I have followed every step in the book and checked that it was correct on the internet. I have also rebuilt the VM that I was running the development server on with all of the latest software.