Saturday, August 28, 2010
WCF RIA Services Part 6 – Validating Data posted
Part 6 of my series on WCF RIA Services is now live here: http://www.silverlightshow.net/items/WCF-RIA-Services-Part-6-Validating-Data.aspx In this episode, I explore the awesome validation infrastructure of RIA Services, one of my favorite benefits of RIA Services. I show how to use the built-in validation attributes of the System.ComponentModel.DataAnnotations namespace on both the client and server side, how to use custom validation via attributes, how to invoke validation logic on the server side and return errors that get automatically associated with the entities client side, and how to use Invoke methods to call async validation logic from the client. Check it out!
Saturday, August 21, 2010
Hidden Toolbox Search feature in VS 2010
Yesterday I was getting frustrated wading through the dozens of Silverlight controls in my toolbox trying to spot one I needed, and it occurred to me that there “ought to be an add-in to search the toolbox”. Just to make sure I wasn’t missing something, I contacted Karl Shifflett from the Cider team, who has written some awesome extensions to Cider and the XAML editor himself. He reached out to the right people on the VS team, and lo and behold, there is already a hidden search feature there. You can read about it here. Thanks Karl and Josh!!
Tuesday, August 17, 2010
Upcoming WCF Master Class in Minnesota
From October 11-15 I’ll be conducting a WCF Master Class in Minneapolis. This class covers the breadth and depth of WCF all in one week. You can find the course information here. If you want to get to the expert level with WCF in a week’s span, this is the class for you. We have been teaching an evolving version of this class since before WCF was released in 2006. It gets rave reviews every time, as long as you are not opposed to some hard core, in depth, fill your brain until it is ready to burst kind of learning. If you have any questions about the content, you can contact me on twitter @briannoyes. Hope to see you there.
WCF RIA Services Part 5 is out
Part 5 of my 10 part series on WCF RIA Services is now up on The Silverlight Show at http://www.silverlightshow.net/items/WCF-RIA-Services-Part-5-Metadata-and-Shared-Classes.aspx. In this article, I explain the role and use of metadata classes to add attributes and functionality to existing entity classes that you cannot easily modify directly, such as the properties on an Entity Framework entity. Additionally, I show how you can define chunks of shared code on the server side and how they become available client side through the RIA Services code generation.
Wednesday, August 4, 2010
WCF RIA Services Part 4 – MVVM articles is live
Part 4 of my series of WCF RIA Services is now live on The Silverlight Show here. In this episode, I focus on using RIA Services in an MVVM world. That includes not using the DomainDataSource anymore and encapsulating the domain context in your view model and making the calls through it from there. You can expose the entity collections from the domain context directly as properties on the view model because they are a collection that raises CollectionChanged events when the underlying data changes, and the entities implement INotifyPropertyChanged so they participate nicely with data binding. They also implement INotifyDataErrorInfo and integrate nicely with the Silverlight data binding mechanisms. The only downside to that approach is that you cannot easily mock out the domain context dependency, so it makes it hard to unit test your view model, which is one of the motivations for using the view model pattern in the first place. At the end of the article I point to a recommended solution from the RIA Services team – specifically to mock out the DomainClient that sits on the other side of the domain context and makes the actual service calls. That is not super easy, but it is at least a solution. I’m going to expand my sample to include that approach in Part 8 of the series. Check it out and let me know what you think.
|








| June, 2013 (1) |
| May, 2013 (2) |
| April, 2013 (2) |
| March, 2013 (2) |
| February, 2013 (2) |
| January, 2013 (2) |
| December, 2012 (3) |
| November, 2012 (1) |
| October, 2012 (1) |
| August, 2012 (2) |
| June, 2012 (2) |
| May, 2012 (3) |
| April, 2012 (1) |
| March, 2012 (2) |
| February, 2012 (2) |
| January, 2012 (1) |
| November, 2011 (4) |
| October, 2011 (1) |
| September, 2011 (2) |
| August, 2011 (1) |
| July, 2011 (1) |
| May, 2011 (5) |
| March, 2011 (4) |
| February, 2011 (2) |
| January, 2011 (3) |
| November, 2010 (4) |
| October, 2010 (1) |
| September, 2010 (5) |
| August, 2010 (5) |
| July, 2010 (6) |
| June, 2010 (8) |
| May, 2010 (2) |
| April, 2010 (2) |
| January, 2010 (1) |
| December, 2009 (3) |
| November, 2009 (2) |
| October, 2009 (3) |
| September, 2009 (3) |
| August, 2009 (2) |
| July, 2009 (3) |
| May, 2009 (3) |
| April, 2009 (2) |
| March, 2009 (1) |
| February, 2009 (2) |
| January, 2009 (2) |
| December, 2008 (1) |
| November, 2008 (2) |
| October, 2008 (5) |
| September, 2008 (4) |
| August, 2008 (2) |
| July, 2008 (1) |
| June, 2008 (2) |
| May, 2008 (2) |
| April, 2008 (3) |
| February, 2008 (6) |
| January, 2008 (3) |
| December, 2007 (1) |
| November, 2007 (1) |
| October, 2007 (5) |
| September, 2007 (1) |
| July, 2007 (3) |
| June, 2007 (8) |
| April, 2007 (2) |
| March, 2007 (4) |
| February, 2007 (1) |
| December, 2006 (2) |
| November, 2006 (9) |
| October, 2006 (5) |
| September, 2006 (3) |
| August, 2006 (2) |
| July, 2006 (4) |
| June, 2006 (5) |
| May, 2006 (10) |
| April, 2006 (4) |
| March, 2006 (2) |
| February, 2006 (12) |
| January, 2006 (7) |
| December, 2005 (2) |
| November, 2005 (15) |
| October, 2005 (6) |
| September, 2005 (7) |
| August, 2005 (3) |
| July, 2005 (10) |
| June, 2005 (11) |
| May, 2005 (7) |
| April, 2005 (8) |
| March, 2005 (6) |
| February, 2005 (2) |
| January, 2005 (6) |
| December, 2004 (3) |
| November, 2004 (5) |
| October, 2004 (2) |
| September, 2004 (5) |
| August, 2004 (13) |
| July, 2004 (6) |
| June, 2004 (14) |
| May, 2004 (17) |
| April, 2004 (12) |
| March, 2004 (8) |
| February, 2004 (10) |
| January, 2004 (14) |
| December, 2003 (9) |
| November, 2003 (13) |
| October, 2003 (3) |
Sign In
|