David Kennedy’s Tech Ramblings

Just another WordPress.com weblog

Silverlight, WCF, and Linq to Sql September 18, 2008

Filed under: Silverlight Tutorials — dotnetdave @ 3:52 am

Whilst putting together the Silverlight datagrid sample from a few posts ago, I came across some odd behaviour with my LINQ entity ‘losing’ its schema definition on the client, resulting in the Grid not displaying the data. I’ll explain my approach by way of diagrams:

silverlinq1 silverlinq2

It seems as if the proxy classes for my LINQ entities were not being properly recognised on the client because of the nested WCF calls. I’m still unsure as to the exact cause of this issue, I verified that appropriate attributes added to my LINQ entity classes to support WCF were being propagated to the proxies built from them, however the only way I could get the Grid to successfully display data was by removing the additional tier.

Advertisements
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s