Design Guidelines, Managed code and the .NET Framework

Brad Abrams

Subscribe to Brad Abrams: eMailAlertsEmail Alerts
Get Brad Abrams: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Brad Abrams

To continue our series let’s look at data validation our business applications. Updating data is great, but when you enable data update you often need to check the data to ensure it is valid.  RIA Services as clean, prescriptive pattern for handling this.   First let’s look at what you get for free.  The value for any field entered has to be valid for the range of that data type.  For example, you never need to write code to ensure someone didn’t type is “forty-two” into a textbox bound to an int field. You also get nice looking and well behaved validation exposure in the UI. Note: if you are not seeing this, ensure that “ValidatesOnExceptions=True” is in the binding expression for the each field Of course, that sort of validation only goes so far, in  real application you need some more extensive validation.  And for this validation you absolutely have to chec... (more)

ScottGu Mix Keynote Coding Demo Posted

A ton of folks have asked us about getting the source code to Scott’s cool coding demo. Watch the demo download the completed example code Note, there are a couple of prereqs: Sql Server 2008 to run it.. works great with the free Sql Express 2008 .NET RIA Services March '09 Preview Silverlight 3 Beta Enjoy! Complete demo steps: 1. In Views/CustomersPage.xaml.cs, in OnNavigatedTo(), add the following: var context = new CustomersDomainContext(); customersList.ItemsSource = context.Customers; context.LoadCustomers(); This code loads the data from the DomainService class on the serve... (more)

Business Apps Example for Silverlight 3 RTM

Continuing in our discussion of Silverlight 3 and  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  video of the full session  The demo requires (all 100% free and always free): VS2008 SP1 (Which includes Sql Express 2008) Silverlight 3 RTM .NET RIA Services July '09 Preview Also, download the full demo files and check out the running application. Today, we will talk about Rich Data Query.    Rich Data Query Next up, let’s talk about data query.  Nearly every busin... (more)

Business Apps Example for Silverlight 3 RTM - Part 7

I wanted to continue with the enhancements to my  Mix09 talk “building business applications with Silverlight 3”.   In this section I am going to show how to get data from a REST based web services rather than directly using Entity Framework or Linq to Sql.  Let’s focus on the cloud source of data.  We will use the same sample from the previous parts and change only the data access part to go against ADO.NET Data Services as the data store.    This pattern might be useful if you do not control your database directly and need to go through a services layer to access it.  The de... (more)

Exposing a WCF Service in Silverlight

I am having a blast with the series where I am updating my simple Mix 09 Business Application demo.  In this part, I wanted to consider the scenario that I hope is a common one.  The developer writes their Silverlight app using the RIA Services pattern and the application becomes wildly successful.  So successful in fact there is a demand to put a services head on top of the same application logic to facilitate writing a bunch of other clients.  This is the sort of pattern we see happening with applications like Twitter and Sharepoint.   You can see the full series here. The de... (more)