Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > BOOK: Professional Silverlight 4
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Silverlight 4
This is the forum to discuss the Wrox book Professional Silverlight 4 by Jason Beres, Bill Evjen, Devin Rader; ISBN: 978-0-470-65092-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Silverlight 4 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 17th, 2011, 10:25 AM
Registered User
 
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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;
dc.Load(dc.GetEmployeesQuery());

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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access database database format itHighway Access 0 February 24th, 2008 05:34 PM
Database Connection to Access Database reachsevar ASP.NET 2.0 Basics 1 November 28th, 2007 07:56 AM
Database access chidolifetime Visual C++ 2005 0 May 29th, 2006 03:31 PM
Remote access to an Access Project Database bright_mulenga Access 0 February 9th, 2006 09:51 AM
Access issues with ASP and a MS Access Database rj_conceptsnrec.com Classic ASP Databases 2 May 19th, 2005 12:44 PM



All times are GMT -4. The time now is 05:22 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.