<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx</link><description>Continuing in our discussion of Silverlight 3 and&amp;#160; the brand new update to .NET RIA Services and the update the example from my Mix09 talk “building business applications with Silverlight 3 ”. You can watch the original&amp;#160; video of the full session</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9829890</link><pubDate>Sun, 12 Jul 2009 07:05:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9829890</guid><dc:creator>Fan</dc:creator><description>&lt;p&gt;Excellent job, Brad. I am wonering how can i use the code developed before SL3 RTM?&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9830068</link><pubDate>Sun, 12 Jul 2009 12:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9830068</guid><dc:creator>Deep Zone</dc:creator><description>&lt;p&gt;Awesome, just wondering how master/detail scenario can be handled?&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9830408</link><pubDate>Sun, 12 Jul 2009 19:30:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9830408</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;When you say '2-tier' and then '3-tier'... and then map directly to your domain entities to be used in the UI... I just have to think 'that worries me' &amp;nbsp; :)&lt;/p&gt;
&lt;p&gt;The real challenge I think is when we start dealing with real poco objects - be them 'data transfer objects' or 'data contracts' being created in the domain services and passed to the UI.&lt;/p&gt;
&lt;p&gt;It's here where you start to see the capability of RIA.NET.&lt;/p&gt;
&lt;p&gt;ie. &amp;nbsp;Already I'm reaching a point of questions, when I have a Customer entity that has a value object Address.&lt;/p&gt;
&lt;p&gt;I use AutoMapper to map that to a CustomerDTO with AddressDTO. &amp;nbsp;However, when you use DomainServices - it doesn't recognize the AddressDTO (WCF does in proxy creation).&lt;/p&gt;
&lt;p&gt;I find this example much more realistic to what is happening in the enterprise level. &amp;nbsp;We've all been burned too many times treating EF or L2S objects as our true domain objects - they are code generated and depending on your domain driven design experience, potentially 'too heavy' to be sent to the UI to populate a data form.&lt;/p&gt;
&lt;p&gt;There is some more added benefit to using DTO's - ie. I can control better how they are used in the UI with the data annotations.&lt;/p&gt;
&lt;p&gt;I love you posts, and this isn't a complaint at all, but I would really like to see a more 'let's map our entities to our DTO's and then send them down the line to our Silverlight app' approach in samples rather than the Entities to SL.&lt;/p&gt;
&lt;p&gt;I personally find that to be more '2 tier'. &amp;nbsp;Separating these layers is critical. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example - if I end up going from NHibernate to EF. &amp;nbsp;Or from EF to L2S, or even back to straight up SQL Commands - my UI is totally impacted! &amp;nbsp;Or even if my data model is shifted. &amp;nbsp;Certainly you can try to get around it - but if you have used DTO's (or 'client objects' is what I like to call it) then your less likely to be rechanging your xaml/viewmodels to handle the coordination from your service layer.&lt;/p&gt;
&lt;p&gt;I'd venture to say your mapper is affected here the most - but that is 'doable' - much easier to address than using these domain entities straight to the UI.&lt;/p&gt;
&lt;p&gt;All that being said, I'd like to see RIA start to handle my example above better where it sees a relationship... even if just a 'value object' - (this address have no key) and create the proxy around it. &amp;nbsp;I'd venture to say 'I'd rather say [IgnoreAssociation] than try to map one - and immediately I'm stuck because I don't have a key. &amp;nbsp;I ended up just flatting this out to a customer with the address fields directly in my customer (another benefit of using DTOs...) - but it wasn't my 'preferred' approach.&lt;/p&gt;
&lt;p&gt;Sorry for the long post, I enjoy your writeups and I think RIA.NET is great- just want to continue to make it even better &amp;nbsp;:)&lt;/p&gt;
&lt;p&gt;(PS. the documentation is good, but I must admit, the setup of RIA class library was tough to follow, I tried that route with my addressDTO from above but it didn't really pan out)&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9830495</link><pubDate>Sun, 12 Jul 2009 21:44:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9830495</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Your thumbnails work, but the links to the full-size files are broken. &amp;nbsp;They all point to locations like file:///C:/Users/brada/AppData/Local/Temp/WindowsLiveWriter-429641856/supfilesD1D2F6D/image[116].png&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9830519</link><pubDate>Sun, 12 Jul 2009 22:25:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9830519</guid><dc:creator>Rod Mac</dc:creator><description>&lt;p&gt;excellent article which I am ploughing thro' but one statement which I would like to query with you as I am new to Silverlight:&lt;/p&gt;
&lt;p&gt;'2-tier apps… and more to the point it just doesn’t work with the Silverlight\web client architecture'&lt;/p&gt;
&lt;p&gt;why wouldn't 2 tier work with Silverlight? The application logic surely could reside in the web service which could be 1..n tier? Presumably Google's Chrome OS will be an OS which simply renders UI and no more and client support for SL will have to work the same way?&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9830683</link><pubDate>Mon, 13 Jul 2009 01:47:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9830683</guid><dc:creator>BradA</dc:creator><description>&lt;p&gt;Steve – thanks.. you are absolutely right.. &amp;nbsp;I think that there are many enterprise scenarios where it is crazy to return the EF types as I have shown in this demo… Of course there are other smaller apps where it is just fine. &amp;nbsp;So we need RIA Services to support both models and it does! &amp;nbsp;I will admit the demos have been a bit too focused on the one of the models to date… that is great feedback..&lt;/p&gt;
&lt;p&gt;I am working on another post that shows how to do exactly this demo with POCO objects.. &amp;nbsp; My feeling is that will address your concerns. &amp;nbsp;Stay tuned!&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9831646</link><pubDate>Mon, 13 Jul 2009 16:48:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9831646</guid><dc:creator>Ivan</dc:creator><description>&lt;p&gt;I think the way RIA is going is great. &amp;nbsp;Keep doing what your doing. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;But there is one concern that holds me from using it, and its not obvious until you get into the code. &amp;nbsp;Using objects that have a couple levels of inheritance gets lost through the RIA serialization process. &amp;nbsp;And so the objects get flattened. &amp;nbsp;And that may be fine for most basic cases, but for some advanced applications, maintaining the inheritance hierarchy is important especially when you have a grid or a list of different types but are based on a the same base type.&lt;/p&gt;
&lt;p&gt;Now that being said, I love what you are doing. &amp;nbsp;RIA is great. &amp;nbsp;I'd just like to see it use more of a WCF type of serialization, which maintains the inheritance on the client. &amp;nbsp;I know its the first version, I hope its addressed in version 2.&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9835037</link><pubDate>Thu, 16 Jul 2009 06:40:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9835037</guid><dc:creator>bell</dc:creator><description>&lt;p&gt;OK - some of us (like 50%) don't use c#. Can we get the demo project in vb also? Else the utility of what you've put together here falls off radically.&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9835943</link><pubDate>Thu, 16 Jul 2009 21:54:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9835943</guid><dc:creator>Peter Silver</dc:creator><description>&lt;p&gt;to &amp;quot;bell&amp;quot;:&lt;/p&gt;
&lt;p&gt;Try www.myVBProf.com for some VB examples.&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9836287</link><pubDate>Fri, 17 Jul 2009 02:54:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9836287</guid><dc:creator>Thomas H. Lanier</dc:creator><description>&lt;p&gt;Why does Linq to SQL with RIA Services put the MyAppDomainContext in MyApp.Web.Services?&lt;/p&gt;
&lt;p&gt;To use a DomainDataSource the xmlns has to be like:&lt;/p&gt;
&lt;p&gt;xmlns:app=&amp;quot;clr-namespace:MyApp.Web.Services&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;where your's was:&lt;/p&gt;
&lt;p&gt;xmlns:App=&amp;quot;clr-namespace:MyApp.Web&amp;quot;&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9836404</link><pubDate>Fri, 17 Jul 2009 05:15:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9836404</guid><dc:creator>BradA</dc:creator><description>&lt;p&gt;Tim -- i think we get the namespace from where the domainservice class is on the server... &amp;nbsp;is yours in MyApp.Web.Services?&lt;/p&gt;
&lt;p&gt;You can have it in any namespace you'd like.&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9839071</link><pubDate>Sun, 19 Jul 2009 00:58:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9839071</guid><dc:creator>Nic Oughton</dc:creator><description>&lt;p&gt;Hi Brad,&lt;/p&gt;
&lt;p&gt;Great blogs on SL3 and RIA really useful - keep up the good work.&lt;/p&gt;
&lt;p&gt;I have onw problem though - I have been working on an app and needed a new item entry window. Everything is working fine except actually commiting the new item back to the database.&lt;/p&gt;
&lt;p&gt;Then I saw your sample, which is doing basically the same action - BUT I can't get that one to work either.&lt;/p&gt;
&lt;p&gt;Please can you confirm that your Add window does actually post back to the databse for SL3 RTM and July 09 RIA services - at least then I'll know its something to do with my setup!&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Nic&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9839117</link><pubDate>Sun, 19 Jul 2009 01:34:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9839117</guid><dc:creator>Nic Oughton</dc:creator><description>&lt;p&gt;Hi Brad (again),&lt;/p&gt;
&lt;p&gt;Ignore my last posting - a quick reboot and your app works fine - sadly mine still does not and I can't fathom why - but at least the problem is with my app and not a general issue!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Nic&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9842577</link><pubDate>Tue, 21 Jul 2009 04:00:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9842577</guid><dc:creator>Dennis Ward</dc:creator><description>&lt;p&gt;Brad - One thing that I've not seen is an example of the autocompletebox that uses a web service with events tied to keyboard input. &amp;nbsp;I've seen autocompletebox examples that use data bound as arrays of strings to ItemsSource, and I've been hunting around for an example where some objects would be returned from a web service (not necessarily strings), and not directly linked to the ItemsSource. &amp;nbsp;This seems like it would be a common use case, and I don't understand how the autocomplete can work with objects that get returned and how to link them to the autocomplete dropdown with a valueconverter?&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9843365</link><pubDate>Tue, 21 Jul 2009 16:51:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9843365</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Hi Brad, you might wanna have a look at this - while editing if you have a validation error highlighted and you change the selection on the grid it breaks the the binding. And the only remedy thereon would be reload the page/app - a possible solution is to like binding the IsEnabled property of the grid to the IsItemValid property of the form. However, this behaviour is wrong by default, see what we can do about it?&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9853115</link><pubDate>Thu, 30 Jul 2009 12:27:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9853115</guid><dc:creator>Umi</dc:creator><description>&lt;p&gt;At first I was able to display my datagrid (without DomainDataServices), but when i tried to use DomainDataServices like you did, it keeps getting back to the Error Page. And so it says, &amp;quot;Page not found: &amp;quot;/Home&amp;quot;&lt;/p&gt;
&lt;p&gt;Any idea what i might do wrong? Really looking forward to your help, Brad.. thanks a lot&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9853117</link><pubDate>Thu, 30 Jul 2009 12:29:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9853117</guid><dc:creator>Umi</dc:creator><description>&lt;p&gt;*correction for before*&lt;/p&gt;
&lt;p&gt;i mean DomainDataSource, not DomainDataServices.&lt;/p&gt;
&lt;p&gt;forgive my typo&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9853175</link><pubDate>Thu, 30 Jul 2009 13:17:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9853175</guid><dc:creator>Umi</dc:creator><description>&lt;p&gt;[update] hi brad it's me again..&lt;/p&gt;
&lt;p&gt;Never mind my last 2-comments before, sorry i made a pure stupid mistake.. now it works, and again, thanks for sharing your work! :)&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9855223</link><pubDate>Sat, 01 Aug 2009 17:49:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9855223</guid><dc:creator>Milan</dc:creator><description>&lt;p&gt;Hi Brad&lt;/p&gt;
&lt;p&gt;i have problem with my POCO object, i am using LinqtoEntity for quering data, and i am created class ProductsR1 because i want to populate my datagrid and dataform with data from 3 tables (or entities: Products, Products_Category and Vendor ), &lt;/p&gt;
&lt;p&gt; public class ProductsR1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public ProductsR1()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[Key]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public int ID { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public string Name { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public string Description { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public decimal Price { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public string Category { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public string Vendor { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Then i wrote query method:&lt;/p&gt;
&lt;p&gt;public IQueryable&amp;lt;ProductsR1&amp;gt; GetProductsR1()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var q = from p in Context.Products&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from pc in Context.Product_Category&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from v in Context.Vendor&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;select new ProductsR1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID = p.ID,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Name = p.Name,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Description = p.Description,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Price = p.Price,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Category = pc.Name,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Vendor = v.Name&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return q;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Here is code from my Products.xaml.cs:&lt;/p&gt;
&lt;p&gt;ProductsDomainContext ctx = new ProductsDomainContext(); &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public Products()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;InitializeComponent();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.Loaded += new RoutedEventHandler(Products_Loaded);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;void Products_Loaded(object sender, RoutedEventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ProductsDataGrid.ItemsSource = ctx.ProductsR1s;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ctx.Load(ctx.GetProductsR1Query); //Here i got error&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Can you help me with this problem?&lt;/p&gt;
&lt;p&gt;Am i doing something wrong?&lt;/p&gt;
&lt;p&gt;Do i have to change my logic?&lt;/p&gt;
&lt;p&gt;Is ther other way beside writing custom class? &lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9855789</link><pubDate>Mon, 03 Aug 2009 02:02:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9855789</guid><dc:creator>BradA</dc:creator><description>&lt;p&gt;Milan - I would guess that would work...&lt;/p&gt;
&lt;p&gt;Why don't you post a repro on the forums and see if we can help?&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://silverlight.net/forums/53.aspx"&gt;http://silverlight.net/forums/53.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9855974</link><pubDate>Mon, 03 Aug 2009 09:58:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9855974</guid><dc:creator>Dila</dc:creator><description>&lt;p&gt;Hi Brad, did your &amp;quot;Add New&amp;quot; button really adds up new entry to the database permanently? because i can't even seem to make that happen, even when i tried your running demo application, it doesn't add anything.&lt;/p&gt;
&lt;p&gt;Any idea how this might work?&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9856100</link><pubDate>Mon, 03 Aug 2009 13:21:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9856100</guid><dc:creator>Milan</dc:creator><description>&lt;p&gt;Hi, i am noticed that all demo and samples are some CRUD application that work with single entitiy.&lt;/p&gt;
&lt;p&gt;I didn't see &amp;nbsp;any sample about quering, inserting, updating and deleting against relational entities. &lt;/p&gt;
&lt;p&gt;I know that this requare a lot of code to write, and you just want to show to us how easy can be writing business app with silverlight and ria.&lt;/p&gt;
&lt;p&gt;Can you write a demo about CRUD app that show for example data from three entities, it would be great if it would be posible to use dataform and bind to single datasource that provide data from several entities, and trough that datasource to update and delete related entities, and of course to use validation, paging.&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9856720</link><pubDate>Tue, 04 Aug 2009 05:43:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9856720</guid><dc:creator>BradA</dc:creator><description>&lt;p&gt;Milan -- &lt;/p&gt;
&lt;p&gt;Check out my latest post.. I did at least part of that..&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/brada/archive/2009/08/03/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-xx-evolving-an-application.aspx"&gt;http://blogs.msdn.com/brada/archive/2009/08/03/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-xx-evolving-an-application.aspx&lt;/a&gt; &lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9860667</link><pubDate>Sat, 08 Aug 2009 00:07:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9860667</guid><dc:creator>omar</dc:creator><description>&lt;p&gt;in myAp.web.g.cs i get error referencing the following []&lt;/p&gt;
&lt;p&gt; using System.[Web].Ria.Data;&lt;/p&gt;
&lt;p&gt; using System.Windows.[Ria].Data;&lt;/p&gt;
&lt;p&gt;where this error come from &lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9864513</link><pubDate>Tue, 11 Aug 2009 18:30:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9864513</guid><dc:creator>Jon T</dc:creator><description>&lt;p&gt;Hi Brad, I've got some classes in my Entity Model that use inheritance (e.g. Employee inherits from Person). When I try to add a Domain Service Class, the Employee class is not available to select... The Person class is available though... I would expect the opposite, particularly as the Person class is set as Abstract on the model. Any ideas?&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9865345</link><pubDate>Wed, 12 Aug 2009 05:00:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9865345</guid><dc:creator>Amy</dc:creator><description>&lt;p&gt;This is a great article on building business applications. &amp;nbsp;We currently use Silverlight/Prism and Unity and everything else here. &amp;nbsp;I was wondering since I seem to see alot of examples written directly on xaml, any chance of showing it using the MVVM pattern? &amp;nbsp;I can infer alot from the samples with delegate commands to my viewmodel. &amp;nbsp;However I am struggling on how to access the childwindow without the viewmodel knowing about the view and vice versa. &amp;nbsp;I am trying to capture the OK button in the childwindow via viewmodel. &amp;nbsp;Any thoughts would be great!! &lt;/p&gt;
&lt;p&gt;TIA,&lt;/p&gt;
&lt;p&gt;Amy&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9869274</link><pubDate>Fri, 14 Aug 2009 06:55:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9869274</guid><dc:creator>Keoz</dc:creator><description>&lt;p&gt;Hey Brad you know you are my hero? you are the only one who gives an example of how to use the autocomplete box I did not even know how tu add custom classes like your Origins omg nice!&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9875564</link><pubDate>Wed, 19 Aug 2009 17:11:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9875564</guid><dc:creator>David</dc:creator><description>&lt;p&gt;This might sound like a silly question, but where do I get the DB with table &amp;quot;SuperEmployee&amp;quot;? I've looked everywhere for it. I have Northwind installed - are you creating your own table there? If so, are you just filling it with your own data? For now, I think I am going to just use the Employee table to follow along with the tutorials. &lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9875580</link><pubDate>Wed, 19 Aug 2009 17:23:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9875580</guid><dc:creator>BradA</dc:creator><description>&lt;p&gt;I am using SqlExpress.. look in the MyApp.Web project and the App_Data directory... there you will see a northwnd.mdf file that has the table in it.&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9875627</link><pubDate>Wed, 19 Aug 2009 18:07:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9875627</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Doh! I am trying to use Sql Server (not express) - I can't believe I didn't look there for the mdf. Thanks Brad!&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9875639</link><pubDate>Wed, 19 Aug 2009 18:15:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9875639</guid><dc:creator>Mike G</dc:creator><description>&lt;p&gt;Brad,&lt;/p&gt;
&lt;p&gt;I'm doing research on RIA for our apps migration to silverlight. &amp;nbsp;Examples like this one and others in your series makes me enthusiastic as there are some awesome features to exploit. &amp;nbsp;However, I've not yet found anything on a particular question I have.&lt;/p&gt;
&lt;p&gt;Your example is fairly simple (I know for demo purposes) in that it gets all the data in the request from your domain service to your data source. &amp;nbsp;The demo just appears to be limiting the data that is sent over the wire to the client. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is fine, but what if my data that I'd be retrieving would be 1000s of records. &amp;nbsp;In my instance I am not necessarily querying a local data store. &amp;nbsp;To get all the records would take minutes. &amp;nbsp;How can (or is it possible) the domain data source and the pager make use of their current client info, current page and page size, to help the domain service on the server be more efficient in returning records through the webservice? ie is there a way to send the current page number and page size to the domain service call?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Mike G&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9875676</link><pubDate>Wed, 19 Aug 2009 18:44:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9875676</guid><dc:creator>BradA</dc:creator><description>&lt;p&gt;Thanks Mike G– &lt;/p&gt;
&lt;p&gt;Actually, no, the default way .NET RIA Services works is that it only pulls down the data the client requests. &amp;nbsp;So in this example if you are on page 2, you only get page 2’s data… we do this via a serialized LINQ query. The DomainDataSource builds up a LINQ query for just what the client needs (sorting, paging, filtering, etc) and then asks the server for just that data. &amp;nbsp; So my database could have 10,000 records and I would only ever download a page or so at a time.&lt;/p&gt;
&lt;p&gt;Hope that helps&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9875748</link><pubDate>Wed, 19 Aug 2009 19:42:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9875748</guid><dc:creator>Mike G</dc:creator><description>&lt;p&gt;Brad,&lt;/p&gt;
&lt;p&gt;Ok, I think I have an understanding if you're using L2SQL or EF where the LINQ query isn't executed/performed until the enumeration happens (from my understanding in memory you're just going to manipulate the actual query, but when the service hands back the results the query is executed and the results returned). &lt;/p&gt;
&lt;p&gt;How would this happen with POCO? &amp;nbsp;If I need to grab objects during the request to hand back the IQueryable I could either load ALL the data up into a POCO Enumerable which is returned as a IQueryable which then is filtered by the LINQ query (BAD). &amp;nbsp;My thought would be to have some kind of page number to get data for and the number of results desired. &amp;nbsp;I could then feed this into my [App Logic] area and it would perform the loading of the POCO enumeration with only the objects that should be serialized to the clients.&lt;/p&gt;
&lt;p&gt;The real reason that I ask this is that we've yet to convert the entire app over to EF. &amp;nbsp;We're gathering data from several different types of data stores and use an intermediate object to do business operations in the [App Logic] layer. &amp;nbsp;It is these objects we'd like to work with on the client.&lt;/p&gt;
&lt;p&gt;Thanks (also thanks for the quick response!)&lt;/p&gt;
&lt;p&gt;Mike G.&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9880904</link><pubDate>Sun, 23 Aug 2009 00:02:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9880904</guid><dc:creator>Richard McSharry</dc:creator><description>&lt;p&gt;Hi Brad,&lt;/p&gt;
&lt;p&gt;I have done this tutorial and got it working, but when I try to use any other database (eg. AdventureWorks) the first load occurs of 20 records and gets paged fine.&lt;/p&gt;
&lt;p&gt;But page 3 onwards just show up blank - no data is returned to the grid. Do you have any clue as to why that my be the case? The only real difference I can see is that the MDF file is not in the App_Data folder, (since it's already attached on SQL Server).&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9880974</link><pubDate>Sun, 23 Aug 2009 01:07:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9880974</guid><dc:creator>Richard McSharry</dc:creator><description>&lt;p&gt;Hi Brad,&lt;/p&gt;
&lt;p&gt;Ignore my last post, I found the issue.&lt;/p&gt;
&lt;p&gt;The IQuery method in the DomainService MUST have an OrderBy for the data to page properly.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9881744</link><pubDate>Sun, 23 Aug 2009 17:35:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9881744</guid><dc:creator>Richard McSharry</dc:creator><description>&lt;p&gt;Brad,&lt;/p&gt;
&lt;p&gt;Either you are a naughy boy or someone simply forgot:&lt;/p&gt;
&lt;p&gt;Create a new Silverlight Business App.&lt;/p&gt;
&lt;p&gt;Open the Styles.xaml file&lt;/p&gt;
&lt;p&gt;Goto line 474.&lt;/p&gt;
&lt;p&gt;You see the code for:&lt;/p&gt;
&lt;p&gt;&amp;lt;!-- DataTemplate for Origins --&amp;gt;&lt;/p&gt;
&lt;p&gt;I think that was not meant to be left in there, right?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Richarad&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9881773</link><pubDate>Sun, 23 Aug 2009 18:02:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9881773</guid><dc:creator>BradA</dc:creator><description>&lt;p&gt;Richard -- yes, this is a bug in the Business Application template.. &amp;nbsp;Sorry about that. &amp;nbsp;it will be fixed in the next drop&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9882834</link><pubDate>Mon, 24 Aug 2009 20:29:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9882834</guid><dc:creator>BMavi</dc:creator><description>&lt;p&gt;It's a great example, Thanks a lot Brad !!!&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9882950</link><pubDate>Mon, 24 Aug 2009 23:20:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9882950</guid><dc:creator>RichardZ</dc:creator><description>&lt;p&gt;There are two lls in the word old in &amp;quot;from plain olld CLR objects&amp;quot;&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9887012</link><pubDate>Thu, 27 Aug 2009 17:46:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9887012</guid><dc:creator>Sergey K</dc:creator><description>&lt;p&gt;Please fix your urls for big images&lt;/p&gt;
&lt;p&gt;a href=&amp;quot;file:///C:/Users/brada/AppData/Local/Temp/WindowsLiveWriter-429641856/supfilesD1D2F6D/image%5B61%5D.png&amp;quot; mce_href=&amp;quot;file:///C:/Users/brada/AppData/Local/Temp/WindowsLiveWriter-429641856/supfilesD1D2F6D/image[61].png&amp;quot; &lt;/p&gt;
&lt;p&gt;img style=&amp;quot;border: 0px none ; display: inline;&amp;quot; title=&amp;quot;image_thumb[29]&amp;quot; alt=&amp;quot;image_thumb[29]&amp;quot; src=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/blogfiles/brada/WindowsLiveWriter/Bus.NETRIAServicesJulyUpdatePart1RichDat_1178B/image_thumb%5B29%5D_d5fac640-3d48-45fd-bb32-e9b8bfb009da.png&amp;quot;"&gt;http://blogs.msdn.com/blogfiles/brada/WindowsLiveWriter/Bus.NETRIAServicesJulyUpdatePart1RichDat_1178B/image_thumb%5B29%5D_d5fac640-3d48-45fd-bb32-e9b8bfb009da.png&amp;quot;&lt;/a&gt; mce_src=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/blogfiles/brada/WindowsLiveWriter/Bus.NETRIAServicesJulyUpdatePart1RichDat_1178B/image_thumb%5B29%5D_d5fac640-3d48-45fd-bb32-e9b8bfb009da.png&amp;quot;"&gt;http://blogs.msdn.com/blogfiles/brada/WindowsLiveWriter/Bus.NETRIAServicesJulyUpdatePart1RichDat_1178B/image_thumb%5B29%5D_d5fac640-3d48-45fd-bb32-e9b8bfb009da.png&amp;quot;&lt;/a&gt; width=&amp;quot;240&amp;quot; border=&amp;quot;0&amp;quot; height=&amp;quot;131&amp;quot;&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9889278</link><pubDate>Mon, 31 Aug 2009 11:11:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9889278</guid><dc:creator>cbleas</dc:creator><description>&lt;p&gt;Hi Brad,&lt;/p&gt;
&lt;p&gt;for views I have problems with domain service because there are no key. Is there a solution?&lt;/p&gt;
&lt;p&gt;Error	1	The entity 'MaintexpressSilverlight.Web.rqt_frm_intervention_DT_Liste' does not have a key defined. Entities exposed by DomainService operations must have must have at least one property marked with the KeyAttribute.	MaintexpressSilverlight&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9891700</link><pubDate>Sat, 05 Sep 2009 08:57:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9891700</guid><dc:creator>Richard</dc:creator><description>&lt;p&gt;Hi Brad:&lt;/p&gt;
&lt;p&gt;Very nice job. &amp;nbsp;Very nice posts. &amp;nbsp;Still having trouble adding a new object. &amp;nbsp;(Either via new Context or using the DomainDataSource context) &amp;nbsp;I notice several other people commenting on this. &amp;nbsp;Any thoughts? &amp;nbsp;Lots of blog posts i've been sifting through so I'm sorry if there was one somewhere that addresses this.&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9895906</link><pubDate>Wed, 16 Sep 2009 18:03:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9895906</guid><dc:creator>mstechnewbie</dc:creator><description>&lt;p&gt;After adding the datagrid to the home page and testing by pressing F5, my browser brings up the following url: &lt;a rel="nofollow" target="_new" href="http://localhost:52878/BusinessApplicationTestPage.aspx"&gt;http://localhost:52878/BusinessApplicationTestPage.aspx&lt;/a&gt;, which transitions by itself to the Home page url: &lt;a rel="nofollow" target="_new" href="http://localhost:52878/BusinessApplicationTestPage.aspx"&gt;http://localhost:52878/BusinessApplicationTestPage.aspx&lt;/a&gt;#/Home.&lt;/p&gt;
&lt;p&gt;Everything appears fine -- the datagrid appears with some rows.&lt;/p&gt;
&lt;p&gt;However, after a very brief moment (2 seconds) though, the application transitions by itself to the following url and error message page:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://errorpage.comcast.net/?cat=Web&amp;amp;con=dc&amp;amp;safe=on&amp;amp;q=localhost"&gt;http://errorpage.comcast.net/?cat=Web&amp;amp;con=dc&amp;amp;safe=on&amp;amp;q=localhost&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sorry. We can't find &amp;quot;localhost&amp;quot;&lt;/p&gt;
&lt;p&gt;There was a problem loading your page. Try retyping the URL in the browser address bar above or, visiting a related link below...&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated!&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9896169</link><pubDate>Thu, 17 Sep 2009 07:40:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9896169</guid><dc:creator>BradA</dc:creator><description>&lt;p&gt;Hmm... No, i haven't seen that... does it repro consistently? &amp;nbsp;Does it repro when you are on a differnet machine?&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9896305</link><pubDate>Thu, 17 Sep 2009 15:26:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9896305</guid><dc:creator>mstechnewbie</dc:creator><description>&lt;p&gt;Brad,&lt;/p&gt;
&lt;p&gt;thanks for responding.&lt;/p&gt;
&lt;p&gt;Finally, after surfing the Forums in the Microsoft Silverlight web site, I found a tip that seems to have resolved it. I was able to resolve the issue above by starting Visual Studio as Administrator.&lt;/p&gt;
&lt;p&gt;P.S. Thanks for the blogs.&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9896353</link><pubDate>Thu, 17 Sep 2009 17:21:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9896353</guid><dc:creator>sahgilbert</dc:creator><description>&lt;p&gt;Hey Brad,&lt;/p&gt;
&lt;p&gt;I've implemented the entire tutorial but for my own database. Everything works fine except the permalink. My xap file is called &amp;quot;InmZen.xap&amp;quot; &amp;amp; my table is called &amp;quot;Job&amp;quot; - with a primary key called &amp;quot;IntRef&amp;quot;. Also, the name of my page with all the datagrids on etc. is &amp;quot;Home.xaml&amp;quot; Here is my code:&lt;/p&gt;
&lt;p&gt;// Executes when the user navigates to this page via permalink&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;protected override void OnNavigatedTo(NavigationEventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var qs = NavigationContext.QueryString;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (qs.ContainsKey(&amp;quot;IntRef&amp;quot;))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dds.FilterDescriptors.Add(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new FilterDescriptor(&amp;quot;IntRef&amp;quot;,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FilterOperator.IsEqualTo, qs[&amp;quot;IntRef&amp;quot;]));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; private void dataGrid1_SelectionChanged(object sender, SelectionChangedEventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var job = dataGrid1.SelectedItem as Job;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (job != null)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PermalinkTextBox.Text = Application.Current.Host.Source.ToString().Replace(&amp;quot;ClientBin/InmZen.xap&amp;quot;, &amp;quot;&amp;quot;) +&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;#/Home?IntRef=&amp;quot; + job.Lang;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;When I Paste the permalink into a browser, nothing happens (just loads a blank screen). Would you be able to shed some light on the subject?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9896355</link><pubDate>Thu, 17 Sep 2009 17:22:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9896355</guid><dc:creator>sahgilbert</dc:creator><description>&lt;p&gt;Apologies - the line &amp;quot;#/Home?IntRef=&amp;quot; + job.Lang; should read &amp;quot;#/Home?IntRef=&amp;quot; + job.IntRef;&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9896734</link><pubDate>Fri, 18 Sep 2009 13:06:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9896734</guid><dc:creator>mstechnewbie</dc:creator><description>&lt;p&gt;Urgent Note: &lt;/p&gt;
&lt;p&gt;Bringing up Visual Studio 2008 SP1 as a user (PCAdmin, who is a member of Administrators group), opening a Silverlight Business Application project template.&lt;/p&gt;
&lt;p&gt;The list of Silverlight XAML Controls appears as:&lt;/p&gt;
&lt;p&gt;(note: I just noted a few; the list is not complete)&lt;/p&gt;
&lt;p&gt;Pointer&lt;/p&gt;
&lt;p&gt;Accordion&lt;/p&gt;
&lt;p&gt;AreaSeries&lt;/p&gt;
&lt;p&gt;AutoCompleteBox&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;DataField&lt;/p&gt;
&lt;p&gt;DataForm&lt;/p&gt;
&lt;p&gt;DataGrid&lt;/p&gt;
&lt;p&gt;DataPager&lt;/p&gt;
&lt;p&gt;DatePicker&lt;/p&gt;
&lt;p&gt;DateTimeAxis&lt;/p&gt;
&lt;p&gt;DescriptionViewer&lt;/p&gt;
&lt;p&gt;DockPanel&lt;/p&gt;
&lt;p&gt;DomainDataSource&lt;/p&gt;
&lt;p&gt;DomainUpDown&lt;/p&gt;
&lt;p&gt;DoubleInterpolator&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;TransitioningContentControl&lt;/p&gt;
&lt;p&gt;TreeMap&lt;/p&gt;
&lt;p&gt;TreeView&lt;/p&gt;
&lt;p&gt;TreeViewItemCheckBox&lt;/p&gt;
&lt;p&gt;TwilightBlueTheme&lt;/p&gt;
&lt;p&gt;ValidationSummary&lt;/p&gt;
&lt;p&gt;Viewbox&lt;/p&gt;
&lt;p&gt;VirtualizingStackPanel&lt;/p&gt;
&lt;p&gt;WhistlerBlueTheme&lt;/p&gt;
&lt;p&gt;WrapPanel&lt;/p&gt;
&lt;p&gt;Bringing up Visual Studio 2008 SP1 as Administrator, opening a Silverlight Business Application project template.&lt;/p&gt;
&lt;p&gt;The list of Silverlight XAML Controls appears as:&lt;/p&gt;
&lt;p&gt;(note: I just noted a few; the list is not complete)&lt;/p&gt;
&lt;p&gt;Pointer&lt;/p&gt;
&lt;p&gt;Accordion (missing)&lt;/p&gt;
&lt;p&gt;AreaSeries (missing)&lt;/p&gt;
&lt;p&gt;AutoCompleteBox&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;DataField (missing)&lt;/p&gt;
&lt;p&gt;DataForm (missing)&lt;/p&gt;
&lt;p&gt;DataGrid&lt;/p&gt;
&lt;p&gt;DataPager&lt;/p&gt;
&lt;p&gt;DatePicker&lt;/p&gt;
&lt;p&gt;DateTimeAxis (missing)&lt;/p&gt;
&lt;p&gt;DescriptionViewer&lt;/p&gt;
&lt;p&gt;DockPanel (missing)&lt;/p&gt;
&lt;p&gt;DomainDataSource (missing)&lt;/p&gt;
&lt;p&gt;DomainUpDown (missing)&lt;/p&gt;
&lt;p&gt;DoubleInterpolator (missing)&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;TransitioningContentControl (missing)&lt;/p&gt;
&lt;p&gt;TreeMap (missing)&lt;/p&gt;
&lt;p&gt;TreeView&lt;/p&gt;
&lt;p&gt;TreeViewItemCheckBox (missing)&lt;/p&gt;
&lt;p&gt;TwilightBlueTheme (missing)&lt;/p&gt;
&lt;p&gt;ValidationSummary&lt;/p&gt;
&lt;p&gt;Viewbox (missing)&lt;/p&gt;
&lt;p&gt;VirtualizingStackPanel&lt;/p&gt;
&lt;p&gt;WhistlerBlueTheme (missing)&lt;/p&gt;
&lt;p&gt;WrapPanel (missing)&lt;/p&gt;
&lt;p&gt;Also, when I run as Administrator and I select Add New Item in the web project, I don't see the icons for the following Visual Studio installed templates in the Web category:&lt;/p&gt;
&lt;p&gt;- Search Sitemap&lt;/p&gt;
&lt;p&gt;- Domain Service Class&lt;/p&gt;
&lt;p&gt;However, when I run Visual Studio as a regular user, the icons appear.&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9899109</link><pubDate>Thu, 24 Sep 2009 22:23:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9899109</guid><dc:creator>mstechnewbie</dc:creator><description>&lt;p&gt;Validation Attribute Causes BreakPoint&lt;/p&gt;
&lt;p&gt;I typed in 'Mall' for Gender then pressed [Tab] key, the application breaks at MyApp08.Web.g.cs, on the line:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.ValidateProperty(&amp;quot;Gender&amp;quot;, value);&lt;/p&gt;
&lt;p&gt;of code, below:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[DataMember()]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[RegularExpression(&amp;quot;^(?:m|M|male|Male|f|F|female|Female)$&amp;quot;, ErrorMessage=&amp;quot;Gender must be \'Male\' or \'Female\'&amp;quot;)]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[StringLength(50)]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public string Gender&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;get&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return this._gender;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ((this._gender != value))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.ValidateProperty(&amp;quot;Gender&amp;quot;, value);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.OnGenderChanging(value);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.RaiseDataMemberChanging(&amp;quot;Gender&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this._gender = value;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.RaiseDataMemberChanged(&amp;quot;Gender&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.OnGenderChanged();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Annotated metadata file (SuperEmployeeDomainservice.metadata.cs) looked like:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[RegularExpression(&amp;quot;^(?:m|M|male|Male|f|F|female|Female)$&amp;quot;, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ErrorMessage=&amp;quot;Gender must be 'Male' or 'Female'&amp;quot;)]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public string Gender;&lt;/p&gt;
&lt;p&gt;System.ComponentModel.DataAnnotations.ValidationException was unhandled by user code&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Message=&amp;quot;Gender must be 'Male' or 'Female'&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;StackTrace:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.ComponentModel.DataAnnotations.Validator.ValidationError.ThrowValidationException()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.ComponentModel.DataAnnotations.Validator.ValidateProperty(Object value, ValidationContext validationContext)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.Windows.Ria.Data.Entity.ValidateProperty(String propertyName, Object value)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at MyApp08.Web.SuperEmployee.set_Gender(String value)&lt;/p&gt;
&lt;p&gt; &amp;nbsp;InnerException: &lt;/p&gt;
&lt;p&gt;Note: the same happens when I enter an Issues number out of the range specified.&lt;/p&gt;
</description></item><item><title>re: Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 2: Rich Data Query</title><link>http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx#9900380</link><pubDate>Mon, 28 Sep 2009 21:14:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9900380</guid><dc:creator>swan</dc:creator><description>&lt;p&gt;I'm new to Silverlight &amp;amp; RIA Services but looking for the best way to handle the following:&lt;/p&gt;
&lt;p&gt;The table that contains the data I want in my datagrid has several employee userid fields (for ex - createdBy, updatedBy, requester, etc.). &amp;nbsp;In a database view I can join to an employee table in a separate database to get the employee's full name and other details to display on the grid. &amp;nbsp;However, If I want to have a dataform tied to the grid for editing, I cannot do this because if I use a view in EF it is read-only. &amp;nbsp;It seems all the EF examples I see are based tables with FK relationships, but we have many fields that contain codes that are in lookup tables either within or external to the given database and don't follow the FK relationship model. &amp;nbsp;We join to these &amp;quot;lookup&amp;quot; tables for display purposes but not sure how to incorporate this into EF &amp;amp; Domain Service class.&lt;/p&gt;
</description></item></channel></rss>